Hi,
I have a problem with the time zone.
rsyslog (8.2010) is configured:
timezone(id="CET" offset="-02:00")
$ActionFileDefaultTemplate S_Format
template (name="S_Format" type="string" string="--++++---%timegenerated%
%TIMESTAMP% [%syslogpriority%] %HOSTNAME%
%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n")
After restarting and activating the debug option:
debug:
8654.703674288:main thread : glbl.c: Timezone information table (1
entries):
8654.704530688:main thread : glbl.c: tzinfo: 'CET':-02:00
8654.704745038:main thread : rsconf.c: telling modules that config
load for 0x14e72e0 is done
cat /var/log/msgprops
Debug line with all properties:
FROMHOST: 'falcon', fromhost-ip: '127.0.0.1', HOSTNAME: 'falcon', PRI: 13,
syslogtag 'root:', programname: 'root', APP-NAME: 'root', PROCID: '-',
MSGID: '-',
TIMESTAMP: 'Jun 15 13:11:56', STRUCTURED-DATA: '-',
msg: ' test'
escaped msg: ' test'
inputname: imuxsock rawmsg: '<13>Jun 15 15:11:56 root: test'
$!:
$.:
$/:
messages:
Jun 15 13:11:56 Jun 15 13:11:56 [5] falcon root: test
in messege UTC time appears instead of CET time
What do I need to do to display the time in the desired time zone?
Kind regards
Drasko
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.