NTP Logging¶
The NTP Logging configuration controls which type of events are logged by the NTP daemon. By default, the NTP daemon will log all synchronization messages.
The NTP daemon will log some messages via syslog, but it places additional
more detailed logging data into separate files within the directory configured
with the logdir option in config-ntp mode.
See also
See System Logs for information on viewing log data and configuring remote logging.
Refer to the Chrony logging documentation for more details on the contents and format of log messages.
The logging configuration is set using the log command from within
config-ntp mode which changes to config-ntp-log mode where the following
commands are available:
- rawmeasurements
Enables logging of raw NTP measurements and other data for each NTP packet to
measurements.login the configured log directory. Useful for debugging.- measurements
Works similarly to
rawmeasurements, except it only logs messages with valid measurements from synchronized sources.- refclocks
Logs reference clock measurements to
refclocks.login the configured log directory.- rtc
Logs information about the hardware real-time clock.
- selection
Logs information about how the NTP daemon selects sources to
selection.login the configured log directory.- statistics
Logs information about regression processing to
statistics.login the configured log directory.- tempcomp
Logs temperature measurements and rate compensations to
tempcomp.login the configured log directory.- tracking
Logs changes to the estimate of the gain or loss rate for the clock, and any slews the NTP daemon has made, to
tracking.login the configured log directory.