Mailing List Archive

[Spam?BadBits] Re: Date format on rsyslog 3.16.0
Hi Rainer,

> I am on a cell phone...
>
> Check out the v3 compatibility document. Its available right from
> the doc main page.

Yes, from that document I found the option:

$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

Which made it go back to the older time format. While reading it more though,
I think I will actually keep it on the new format as the precision time isn't
actually too bad. It may break some of my scripts which analyse daily log
files and if it does, I'll enable the traditional format again, but for now
I'll wait and see if anything breaks.

Thanks.

Michael.

> rainer
>
> ----- Urspr?ngliche Nachricht -----
> Von: "Michael Mansour" <mic at npgx.com.au>
> An: "rsyslog-users" <rsyslog at lists.adiscon.com>
> Gesendet: 27.04.08 18:13
> Betreff: [rsyslog] Date format on rsyslog 3.16.0
>
> Hi,
>
> The date format logged to the messages/maillog/etc has changed from:
>
> Apr 27 21:36:58
>
> to:
>
> 2008-04-27T21:44:35.788251+10:00
>
> I'm new to v3 so how can I change this format back to the original?
>
> Thanks.
>
> Michael.
>
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
------- End of Original Message -------
[Spam?BadBits] Re: Date format on rsyslog 3.16.0 [ In reply to ]
Hi Michael,

On Mon, 2008-04-28 at 10:15 +1100, Michael Mansour wrote:
> Hi Rainer,
>
> > I am on a cell phone...
> >
> > Check out the v3 compatibility document. Its available right from
> > the doc main page.
>
> Yes, from that document I found the option:
>
> $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
>
> Which made it go back to the older time format. While reading it more though,
> I think I will actually keep it on the new format as the precision time isn't
> actually too bad. It may break some of my scripts which analyse daily log
> files and if it does, I'll enable the traditional format again, but for now
> I'll wait and see if anything breaks.
>

Yes, scripts is the big Problem. Rsyslog actually had high-precision
timestamps right from the beginning, but nobody ever used them. So I
decided to change the default ;)


On the scripts: I am thinking about a simple converter that takes high
precision log files and converts them to old-style low precision ones.
Such a converter could be run before the actual script. Do you (or
someone else) think this is useful and worth the effort?

Rainer

> Thanks.
>
> Michael.
>
> > rainer
> >
> > ----- Urspr?ngliche Nachricht -----
> > Von: "Michael Mansour" <mic at npgx.com.au>
> > An: "rsyslog-users" <rsyslog at lists.adiscon.com>
> > Gesendet: 27.04.08 18:13
> > Betreff: [rsyslog] Date format on rsyslog 3.16.0
> >
> > Hi,
> >
> > The date format logged to the messages/maillog/etc has changed from:
> >
> > Apr 27 21:36:58
> >
> > to:
> >
> > 2008-04-27T21:44:35.788251+10:00
> >
> > I'm new to v3 so how can I change this format back to the original?
> >
> > Thanks.
> >
> > Michael.
> >
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> ------- End of Original Message -------
>
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog