On Mon, 5 Jun 2017, William Dauchy wrote:
Date: Mon, 5 Jun 2017 21:45:26 +0200
From: William Dauchy <[email protected]>
To: David Lang <[email protected]>
Cc: William Dauchy via rsyslog <[email protected]>
Subject: Re: [rsyslog] timestamp comparison
Hello David,
On Mon, Jun 5, 2017 at 7:08 PM, David Lang <[email protected]> wrote:
the only way I know to do it would be to first convert them to unix epoc
time (seconds since Jan 1 1970) via exec_template and then compare the
resulting numbers.
Thank you for you answer, that's an idea; however I am unable to get
it to work, e.g:
template(name="timereported_epoch" type="string"
string="%$!timereported%" dataFormat="unixtimestamp")
did you mean %timereported% instead of %$!timereported% ?
_______________________________________________
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.