This is interesting! Thank you very much indeed!
But how will I mention custom variables in templates?
Will you please share an example?
Mine now looks like below:
template (name="PolKit" type="list") {
property(name="timereported" dateFormat="year")
constant(value=" ")
property(name="timereported" dateFormat="month")
constant(value=" ")
property(name="timereported" dateFormat="day")
constant(value=" ")
...
}
But I'm perplexed how to finish it with the custom variables.
Basically the rsyslog configuration is like below:
if ($programname == 'polkitd' then {
reset $msg = replace($msg, 'etc', '');
action)type="omfile" file="/var/log/polkit.log" template="PolKit"
stop
}
_______________________________________________
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.