On Mon, 3 Aug 2015, chenlin rao wrote:
I want a function like logstash-filter-date. For example:``` $!datetime = strptime("%d/%m/%Y:%H:%M:%s", $!json!datetime); template(name="ls" type="list") {property(name="!datetime" dateFormat="rfc3339")...} ``` But seems like rainerscript can only return number, string, array or json?
look at the property replacer http://www.rsyslog.com/doc/v8-stable/configuration/property_replacer.html
It's not as simple to create arbitrary formats, but it covers a bunch of the formats you normally need.
David ang _______________________________________________ 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.

