Tip

This is the documentation for the 19.12 version. Looking for the documentation of the latest version? Have a look here.

NTP LoggingΒΆ

The NTP Logging configuration controls which type of events are logged by the NTP daemon using syslog, and the verboseness of the logs. By default, the NTP daemon will log all synchronization messages.

The logging configuration is set using the logconfig command from within config-ntp mode.

logconfig sequence <seq> <action> <class> <type>:
seq:

Specifies the sequence for log entries so that the order of parameters may be controlled by the configuration.

action:

Specifies the action for this log entry, as one of:

set:

Set the mask for the log entry. Typically this would be used for the first entry to control which message class+type is logged as the base set of log entries.

add:

Add log entries matching this specification to the specified total set of logs.

delete:

Do not log entries matching this specification in the total set of logs.

class:

Specifies the message class, which can be one of:

all:

All message classes

clock:

Messages about local clock events and information.

peer:

Messages about peers.

sync:

Messages about the synchronization state.

sys:

Messages about system events and status.

type:

Specifies the type of messages to log for each class:

all:

All types of messages.

events:

Event messages.

info:

Informational messages.

statistics:

Statistical information.

status:

Status changes.