SvennD
logs running behind from date in virtual machine
November 14, 2015

logs running behind from date in virtual machine

Posted on November 14, 2015  •  1 minutes  • 130 words  •  Suggest Changes

On a virtual server,  date was responding with the correct time/date. However logs where filling up with a wrong time. I normally change the timezone like this : (adapt as needed)

ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
[root@main ~]# date
Sat Nov 14 21:55:22 CET 2015

Also in /etc/sysconfig/clock change to : (adapt as needed)

ZONE="Europe/Brussels"

Even when those are done the logs kept on showing up logs very long time ago, the cause was rsyslog running behind… never happened before so :

service rsyslog restart

This was also causing my fail2ban to be to easy on this spammers I believe! Questions, remarks, just shoot below !

 

Update : seems /etc/sysconfig/clock is not per definition the problem, its rsyslog that is keeping the old date, just restarting ryslog seems to be enough!

Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper