I didn't find any ntpd log file in /var/log. I am wondering where can I find those log files, thanks!
Asked
Active
Viewed 1.1e+01k times
3 Answers
14
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
- 62,149
- 16
- 116
- 151
-
4And 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
-
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,737
- 3
- 37
- 69
-
A simple example for stats/logs generation can be found in https://serverfault.com/a/995110/86801. – Jaime Hablutzel Dec 10 '19 at 22:48
3
You should see them in /var/log/messages or wherever your syslog messages are going.

carson
- 1,630
- 11
- 15