----- Original Message ----- From: "Jeff Boyce" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 05, 2006 9:14 AM
Subject: Can I specify log file in config file ?


Greetings -

I have read through the man page, the web support site, and have been following the mailing list for months, but I have not seen an answer to this question so I thought I would try here. Please forgive me if it has been answered elsewhere, then point me to where I can find it, since it seems like such a simple question. I have a lot of ntp messages cluttering up my general syslog file (var/log/messages) and I would like to have the ntp messages go to a specific ntp log files such as var/log/ntpmsg. I was hoping to be able to define the log file for ntp in my configuration file, but I do not see any information detailing how I would do that. I did notice that I can specify a log file as an argument when starting ntp from the command line, but I do not want to have to remember that each time I have to start/restart ntp. So the important question is: how can I specify in the configuration file a unique log file to send all my ntp log messages to? Thanks for any help.

Jeff Boyce
www.meridianenv.com


Ronan Flood  replied:
"logfile /var/log/ntpmsg" in ntp.conf should do it; ref

 http://www.eecis.udel.edu/~mills/ntp/html/miscopt.html


and Richard B. Gilbert replied:
Here's a segment of my ntp.conf file
#
# NTP monitoring parameters
#
logfile /var/ntp/ntp.log    <------------- That's how


Thanks Ronan and Richard for the courteous replies that include good examples and a reference to the web page that explains this option that I apparently overlooked. This should do just what I need now.

Jeff

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to