Getting "year" in syslog

Aug 18, 2005 3 Replies

Hi Ivan,

You may wish to investigate Cisco's Service Timestamps:

formatting link
Sincerely,

Brad Reese BradReese.Com Cisco Repair Service Experts

formatting link
Hendersonville Road, Suite 17 Asheville, North Carolina USA 28803 USA/Canada Toll Free: 877-549-2680 International: 828-277-7272 United Kingdom: 44-20-70784294

except that the timestamps inserted do not include the year, only the month, day, and time of day.

For the original question... you have at least two possibilities:

1 - use a syslog daemon that allows adding the year to the local timestamp and putting that timestamp on the messages (sometimes, having the "when occurred" timestamp and the "when received" timestamp can be useful information on its own. How to configure this is system dependent.

2 - use the syslog tcl tools available on 17xx and 8xx routers to add whatever information is desired to any syslog events before they are sent to the syslog server(s). Have fun using this capability, when last I looked, the Cisco documentation left a lot to the imagination, and figuring out what features are and are not supported in the Cisco tcl implementation tended to be a trial and error process.

Good luck and have fun!

Vincent, thanks for the tips. I'll try to use the first one because IOS is old (but stable) and I'm not allowed to upgrade.

Thanks.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required