Running an Ubuntu Trusty 14.04.1 LTS server at Rackspace but recently after running updates for bash, then with the reboots for the xen host vulnerability, I have the following weird issue.
Some random auth.log entries are popping up out of date sync, for example:
Oct 14 12:12:10 myserver sshd[2097]: pam_unix(sshd:session): session closed for user
Oct 13 12:58:30 myserver sshd[2522]: Failed password for foo from 21.21.21.21 port 1490 ssh2
Oct 14 12:21:28 myserver sshd[3389]: Accepted password for bar from 22.22.22.22 port 61173 ssh2
I have a seperate cron.log running too, (I changed the configs for rsyslog) but have random out of date sync entries there too, for example:
Oct 14 07:11:01 myserver CRON[32099]: (root) CMD
Oct 13 03:16:01 myserver CRON[32226]: (root) CMD
Oct 14 07:12:01 myserver CRON[32226]: (root) CMD
EDIT TO ADD:
I've noticed that it looks like some log entries are delayed being added to the *.log by rsyslog. Some entries show the following pattern:
Oct 12 09:19:07 myserver sshd[4792]: pam_unix(sshd:auth): authentication failure;
Oct 12 09:19:09 myserver sshd[4792]: Failed password for x
Oct 14 12:21:32 myserver su[3484]: pam_unix(su:session): session open
Oct 12 09:19:12 myserver sshd[4792]: Failed password for x from 20.20.20.20 port 2158 ssh2
The above example shows the first two entries came in on time, but the last one (12 seconds) was actually delayed by two days!
I have checked the date on the server is correct, restarted SSH processes, restarted rsyslog.
Everything else on server is running fine - Apache, sync, varnish etc etc
Any ideas on what I'm missing here?