[rsyslog-notify] Forum Thread: to convert time received in message based on timezone - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Fri Mar 7 09:29:58 CET 2014
User: dhaivat.desai
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24316#p24316
Message:
----------
Hi,
My client application sends the message with UTC timestamp in message
header (rfc5424 format) over tcp.
Rsyslog server receives this message and prints in local logfile.
I am using following template to format the message received in Rsyslog
server.
template(name="log_template" type="list") {
property(name="timereported" dateFormat="rfc3339")
constant(value=" ")
property(name="syslogseverity-text")
constant(value=": ")
property(name="msg")
constant(value="\n")
}
It prints timestamp in UTC format which is fine.
Is it also possible to convert - the time received from message - to the
local time and then print it into the file..?
Best Regards,
Dhaivat Desai.
More information about the rsyslog-notify
mailing list