Perhaps something as horrible and cat-killing as:

   action(type="omfile"
        if ($my_custom_json_field = "a") then {
            file="a.log"
        }else if ($my_custom_json_field = "b" ) then {
            file="b"
        }else{
            file="c"
        }
   )

...one action for each field-value seems enough to kill many cats at once.

El 21/09/16 a las 13:46, mosto...@gmail.com escribió:

Hi


As exposed a few days ago, I'm trying to do something like:

action(type="omfile" file="$!dynamicvalue")

According to some comments that's not possible. Otherwise, please, let me know!!!.

Can you figure out a workaround to achieve this?
...like using queue="$variable" and then reading queue with imfile setting omfile file=%queuename%...


Regards

_______________________________________________
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