Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Howto to get the year timestamp in syslog and logadm files

962201Sep 14 2012 — edited Sep 19 2012
5.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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2012
Added on Sep 14 2012
1 comment
823 views