Where are the ntpd log file located, and how can we configure the ntpd log file path?
772
I deal with that, ntpd as a daemon on my linux server by default configuring, but where should we look up the log file? Is there any log file normal, and if not , how can we configure that?
ntpd logs basic messages to syslog by default, so where those logs go is dependent on your syslog configuration, but /var/log/messages and /var/log/syslog or common places to look.
ntpd logs basic messages to syslog by default, so where those logs go is dependent on your syslog configuration, but
/var/log/messages
and/var/log/syslog
or common places to look.ntpd can also generate statistics if
statsdir
is defined in/etc/ntp.conf
and you have somefilegen
definitions. Here is the documentation for statsdir and filegen.By default
ntpd
uses the syslog mechanism, unlesslogfile
is specified in the configuration file.Despite of that the amount of log messages is configured using the
logconfig
directive in the configuration file.Maybe you find the old NTP FAQ entry "6.1.4.1 How can I configure the amount of logging information?" helpful.