Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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.