Logs showing up with time delay

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Logs showing up with time delay

Post by vmesquita »

First I realized that logs were taking a long time to show up. Then I was comparing the dates on the log server interface:

Code: Select all

@timestamp 	host 	type 	message 	Actions
[b]2014-11-27T15:02:49.000-02:00	x.x.x.x 	syslog 	teste[/b] 	
2014-11-27T15:02:29.000-02:00	 x.x.x.x 	syslog 	[origin software="rsyslogd" swVersion="5.8.10" x-pid="24040" x-info="http://www.rsyslog.com"] exiting on signal 15. 	
2014-11-27T15:02:29.000-02:00	 x.x.x.x 	syslog 	Kernel logging (proc) stopped. 	
And this is from /var/log/messages

Code: Select all

Nov 27 12:02:29 vx421 kernel: Kernel logging (proc) stopped.
Nov 27 12:02:29 vx421 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x
-pid="24040" x-info="http://www.rsyslog.com"] exiting on signal 15.
Nov 27 12:02:29 vx421 kernel: imklog 5.8.10, log source = /proc/kmsg started.
Nov 27 12:02:29 vx421 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x
-pid="24249" x-info="http://www.rsyslog.com"] start
Nov 27 12:02:29 vx421 rsyslogd: rsyslogd's groupid changed to 4
Nov 27 12:02:49 vx421 teste_log: teste
The Log Server previously had the timezone set incorrectly. This has been fixed but nothing changed. Any ideas?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Logs showing up with time delay

Post by Box293 »

vmesquita wrote:The Log Server previously had the timezone set incorrectly. This has been fixed but nothing changed. Any ideas?
Did you update the system timezone AND the /etc/php.ini date.timezone setting?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Logs showing up with time delay

Post by vmesquita »

I just changed also php.ini and rebooted, nothing changed.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Logs showing up with time delay

Post by Box293 »

Is the date/time/timezone correctly set on the sending device?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked