LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2022, 09:59 AM   #1
MST
LQ Newbie
 
Registered: Sep 2014
Posts: 20

Rep: Reputation: Disabled
LINUX NTP logs included in rsyslog


Hello,

Trying to find a way include /var/log/ntp/log in /etc/rsyslog.conf so all can send to remote log server.

Seems like it has to be one of the rule but now sure.
 
Old 04-06-2022, 10:04 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by MST View Post
Hello,
Trying to find a way include /var/log/ntp/log in /etc/rsyslog.conf so all can send to remote log server. Seems like it has to be one of the rule but now sure.
By default ntpd uses syslog, unless a logfile is defined in the NTPD configuration file. The amount of logging messages is configured using the logconfig directive in that config file.

The ntpd daemon can also generate statistics if statsdir is defined, and you have some filegen definitions. Docs on those things: http://doc.ntp.org/4.2.6p3/monopt.html
 
Old 04-06-2022, 10:17 AM   #3
MST
LQ Newbie
 
Registered: Sep 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
how can I do that in simply way?
 
Old 04-06-2022, 11:31 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by MST View Post
how can I do that in simply way?
No idea what you're asking. Again, as said, NTP is logged to syslog BY DEFAULT, unless you have it logging somewhere else. You do it by looking at your NTP configuration, and adjusting it to do what you want.

You were provided the explanation, documentation, and explanation on what to do. Not much else to say 'in a simply way'.
 
Old 04-06-2022, 11:37 AM   #5
MST
LQ Newbie
 
Registered: Sep 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
ok that was simple and I dont think you dont know, anyway:

logfile /var/log/messages in ntp.conf and now I see all logs in rsyslog messages on remote server - if this make somebody life easier
 
Old 04-06-2022, 11:40 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by MST View Post
ok that was simple and I dont think you dont know, anyway:
Yes, it was simple...and I *TOLD YOU* how to do it, and what to look for, and handed you documentation. All of which you you had to have looked up for you. Not going to spoon feed you an answer of "Open this file, and type this in", if that's what you were after.
Quote:
logfile /var/log/messages in ntp.conf and now I see all logs in rsyslog messages on remote server - if this make somebody life easier
Right...just like you were told, to look into the ntp config file and set things accordingly. Insulting people when they try to help you isn't likely to get you much help in the future.

Last edited by TB0ne; 04-06-2022 at 11:41 AM.
 
  


Reply

Tags
ntp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[rsyslog] how to get the original IP address in rsyslog relay chain wolf4666 Linux - Software 4 10-18-2018 09:17 AM
[SOLVED] Every two minutes rsyslog outputs - rsyslogd: action 'action 3' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 Toadman Linux - Software 9 09-01-2018 12:41 PM
How to get NTP client logs on NTP server LinuxLover Linux - Server 6 03-26-2015 05:44 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration