Hi all,
is it possible to get current year in syslogm messages (I'm getting just "month" and "day") on IOS 12.2?
Hi all,
is it possible to get current year in syslogm messages (I'm getting just "month" and "day") on IOS 12.2?
Hi Ivan,
You may wish to investigate Cisco's Service Timestamps:
Brad Reese BradReese.Com Cisco Repair Service Experts
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.
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.