21

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

David Liu
  • 313
  • 1
  • 3
  • 6
  • See also: https://serverfault.com/questions/359835/where-are-the-ntpd-log-file-located-and-how-can-we-configure-the-ntpd-log-file – U. Windl Feb 09 '22 at 09:13

3 Answers3

13

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'
Dennis Williamson
  • 60,515
  • 14
  • 113
  • 148
12

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.

BillThor
  • 27,354
  • 3
  • 35
  • 69
3

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

carson
  • 1,620
  • 11
  • 15