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 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, 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.


___
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.


___
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.


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, 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.
>
___
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.


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 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.

[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 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.