[syslog-ng] ISO 8601 format in syslog-ng

Balazs Scheidler bazsi at balabit.hu
Fri Jun 24 14:06:08 CEST 2011


On Thu, 2011-06-16 at 00:51 +0530, Pramod Pillai wrote:
> Hi
> 
> Need your help to understand ISO 8601 format settings on the syslog-ng server.
> 
> On the syslog-ng client log the time stamp is shown as
> "2011-06-15T23:42:26+00:00"
> On the syslog-ng server log  the time stamp is printed as
> "2011-06-15T23:42:26+05:30"
> 
> 
> The client uses $ISODATE in the template
> The server is using $S_ISODATE in the template
> 
> As per my understanding the time stamp on the server should be
> "2011-06-16T05:12:26+05:30" .
> 
>  Is my understaning of ISO 8601 format is incorrect ?  or my setting
> in the syslog-ng config file is wrong ?

You may want to include a little bit more details in your post. Is the
client showing that timestamp in a local file, or is it sending in this
format on the network?

Are the timezones properly set on both boxes?

Where did you use the templates you are describing? Some more details
from your configuration should help.

-- 
Bazsi




More information about the syslog-ng mailing list