[rsyslog] Dynamic value for action parameter (workaround?)

2016-09-21 Thread mosto...@gmail.com
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 que

Re: [rsyslog] Dynamic value for action parameter (workaround?)

2016-09-21 Thread mosto...@gmail.com
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

Re: [rsyslog] Dynamic value for action parameter (workaround?)

2016-09-21 Thread Rainer Gerhards
Look at the dynafile Parameter. Sent from phone, thus brief. Am 21.09.2016 13:46 schrieb "mosto...@gmail.com" : > 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, pl

Re: [rsyslog] Dynamic value for action parameter (workaround?)

2016-09-21 Thread mosto...@gmail.com
Hi Rainer As at the end I'm using omhiredis, writing "intermediate files" is a cat-extermination technique. Anyhow...will I be able to set omhiredis key="$!filename" or any attribute defined by dynafile/imfile? Any other ideas? El 21/09/16 a las 14:15, Rainer Gerhards escribió: Look at t