postfix-users April 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: [SOT]: Postfix/syslog date format

Re: [SOT]: Postfix/syslog date format

From: Lima Union <limaunion_at_nospam>
Date: Thu Apr 14 2011 - 18:07:07 GMT
To: postfix-users@postfix.org

On Thu, Apr 14, 2011 at 1:45 PM, /dev/rob0 <rob0@gmx.co.uk> wrote:
> On Thu, Apr 14, 2011 at 01:19:03PM -0300, Lima Union wrote:
>> Hi, I believe that this question is slightly OT but I'm seeing this
>> syslog format in Postfix: "Apr 10 08:53:12 relay1
>> postfix/cleanup[16550]:.....", my question is if there's a way to
>> have also printed the year in the date field? while looking for
>> historic data it can be really useful. I'm running RHEL 5.6 with
>> the default syslog package, I've looked at the man page and googled
>> without much success, any ideas? TIA!
>
> Aren't you rotating your logs? Pipe them through sed(1) if desired,
> or just save them in a year/month/day directory tree, such that the
> year would be part of the pathname.

OK I think that I'll simply switch to rsyslog
Thanks.