Hi,
I'm looking for a useful monatomic timestamp property that can be used for
rate-limiting calculations in rules.
'parse_time($timegenerated)' mostly works, but when there are local time
adjustments happen like daylight saving and time goes backwards.
https://www.rsyslog.com/doc/master/configuration/properties.html#system-properties
https://www.rsyslog.com/doc/master/rainerscript/functions/rs-parse_time.html
A $timegenerated-utc property would not have daylight saving timezone
issues, but does not appear to be available. Similar $now-utc is available,
but it does not have second resolution to be useful to convert to a unix
timestamp with parse_time().
Is there a high precision utc timestamp property available?
Thanks,
Nick
_______________________________________________
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.
I'm looking for a useful monatomic timestamp property that can be used for
rate-limiting calculations in rules.
'parse_time($timegenerated)' mostly works, but when there are local time
adjustments happen like daylight saving and time goes backwards.
https://www.rsyslog.com/doc/master/configuration/properties.html#system-properties
https://www.rsyslog.com/doc/master/rainerscript/functions/rs-parse_time.html
A $timegenerated-utc property would not have daylight saving timezone
issues, but does not appear to be available. Similar $now-utc is available,
but it does not have second resolution to be useful to convert to a unix
timestamp with parse_time().
Is there a high precision utc timestamp property available?
Thanks,
Nick
_______________________________________________
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.