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.

CentOS 5.x | SendMail

I'm cross-referencing logs with another application/server and would like to change the date format on the SendMail maillog.

Presently it's MMM DD HH:MM:SS

Is there any way to change that? Where is it defined?

share|improve this question
    
Why the vote to close? –  Mike B Jan 31 '13 at 19:38

2 Answers 2

up vote 3 down vote accepted

You have to switch to syslog-ng to be able to change the date format in the log files. I don't think syslogd, which is the default in CentOS 5.x, allows you to change the date format.

share|improve this answer

Syslog is the one responsible for sendmail logs....thus to change the format you'd have to change the syslog program. Of course, that would change things for a number of other things doing logging.

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.