Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Syslog uses a timestamps like the following:

Sep 19 13:36:56

Is there a way to adjust the format (to add the year for example) without touching the source code? I am some what shocked to find that the answer to this appears to be so obscure, unless I am just googling the wrong things.

share|improve this question
add comment

1 Answer

Timestamp format is indeed hardcoded in make_timestamp() function:

http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/syslogd/syslogd.c?annotate=HEAD

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.