On Mon, 5 Dec 2016, Bob Gregory wrote:

action(type="omriemann" metric="1") will send {host:$hostname, time:
$timereported,   service: $programname}

One point of clarification, rsyslog doesn't currently have a config parameter type that allows for a parameter to sometimes be a constant and sometimes be a variable name.

so either you would need to do

set $.mymetric="1";
action(type="omriemann" metric="$.mymetric")

or you would need to introduce the capability to have a parameter that can be either a constant or a variable.

allowing a parameter to be something more complex (a function, or includ math) is a step even further.

David Lang
_______________________________________________
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.

Reply via email to