Page 1 of 1

Logs showing up with time delay

Posted: Thu Nov 27, 2014 12:14 pm
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?

Re: Logs showing up with time delay

Posted: Thu Nov 27, 2014 6:39 pm
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?

Re: Logs showing up with time delay

Posted: Fri Nov 28, 2014 9:50 am
by vmesquita
I just changed also php.ini and rebooted, nothing changed.

Re: Logs showing up with time delay

Posted: Fri Nov 28, 2014 7:43 pm
by Box293
Is the date/time/timezone correctly set on the sending device?