Can I specify log file in config file ? - NTP

This is a discussion on Can I specify log file in config file ? - NTP ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Can I specify log file in config file ?

  1. 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

    _______________________________________________
    questions mailing list
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


  2. Re: Can I specify log file in config file ?

    jboyce@meridianenv.com (Jeff Boyce) wrote:

    > 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


    "logfile /var/log/ntpmsg" in ntp.conf should do it; ref

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


    --
    Ronan Flood
    working for but not speaking for
    Network Services, University of London Computer Centre
    (which means: don't bother ULCC if I've said something you don't like)

  3. Re: Can I specify log file in config file ?

    Jeff Boyce wrote:

    > 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
    >
    > _______________________________________________
    > questions mailing list
    > questions@lists.ntp.isc.org
    > https://lists.ntp.isc.org/mailman/listinfo/questions
    >


    Here's a segment of my ntp.conf file
    #
    # NTP monitoring parameters
    #
    logfile /var/ntp/ntp.log <------------- That's how

  4. Re: Can I specify log file in config file ?

    ----- Original Message -----
    From: "Jeff Boyce"
    To:
    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
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


+ Reply to Thread