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.


Timestamp format is indeed hardcoded in make_timestamp() function:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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