Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

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'
share|improve this answer
    
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
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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