Howto to get the year timestamp in syslog and logadm files
962201Sep 14 2012 — edited Sep 19 20125.10 Generic_141414-10 sun4u sparc
Howto to get the year timestamp in syslog and logadm
We have to keep logs files for a long time, I was exploring logs in /var/adm/secure and noticed that log files over a year old did not have a year time stamp, they are in this format:
Nov 12 09:09:16
And on the face of it. /varlog/syslog is the same, I thought no problem, there will be something in syslog.conf or logadm.conf I change and it will be fixed, but I cannot find any options to change this, how do I get the year in my log files?
The "date" command does output the year:
Friday, September 14, 2012 7:57:36 AM