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 9.9k times
3 Answers
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
-
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,354
- 3
- 35
- 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,620
- 11
- 15