What exactly does the variable contain? it may not be a timestamp as rsyslog
understands it.
David Lang
On Thu, 31 Mar 2016, Christopher Racky wrote:
Date: Thu, 31 Mar 2016 13:46:24 +0200
From: Christopher Racky <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: [rsyslog] Time convert from variable timestamp
Hello,
I was able to exact the date-time in rsyslog via liblognorm.
Now the timestamp is in variable %$!usr!times%
But now I want to convert this timestamp to rfc-3164 from rfc-3339 date format.
My expectation was that something in analogy to
%timegenerated:::date-rfc3164%
should work:
%$!usr!times:::date-rfc3164%
but unfortunately it doesn't.
Do you have any hint if this is possible or how?
best regards
Chris
_______________________________________________
rsyslog mailing list
http://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.
_______________________________________________
rsyslog mailing list
http://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.