15

I didn't find any ntpd log file in /var/log. I am wondering where can I find those log files, thanks!

9

This may tell you if/where ntp activity is being logged:

grep log /etc/ntp.conf

You can also try:

ps auxww | grep '[n]tp'
  • 3
    And you can probably just grep for ntp in /var/log/messages. – Phil Hollenback Jan 23 '11 at 18:11
  • @Phil: That's true as carson said in his answer, however the log file can be changed in the conf file or by using a command line parameter. That's why I suggested something that would lead to where that alternative might be. – Dennis Williamson Jan 23 '11 at 18:16
  • Absolutely right Dennis. – Phil Hollenback Jan 23 '11 at 19:38
8

NTP doesn't normally generate many log messages nor have its own log file. Log messages on my system are found in /var/log/daemon.log.

Statistics are found in the statistics dir (/var/log/ntpstats on my system). Presence of statistics files are controlled by the filegen options in your ntp.conf file.

3

You should see them in /var/log/messages or wherever your syslog messages are going.

  • This is where my NTP logs are stored on Amazon Linux – Tim Dec 1 '17 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.