Hello again,
last question for today. Is there a way to filter everything from warn
and up using the text names, besides using an "or" logic to list all of
them individually?
Just to give the idea, of course you cannot greater compare strings:
if ($syslogseverity-text >= "warning") then {
But maybe there is an alternative syntax, as it does work using the
number values:
if ($syslogseverity <= 4) then {
But using the old school names would be more intuitive. Adding all
five of them individually is not really a big deal, but maybe there is a
more elegant and versatile option.
Thanks
Ede
_______________________________________________
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.
last question for today. Is there a way to filter everything from warn
and up using the text names, besides using an "or" logic to list all of
them individually?
Just to give the idea, of course you cannot greater compare strings:
if ($syslogseverity-text >= "warning") then {
But maybe there is an alternative syntax, as it does work using the
number values:
if ($syslogseverity <= 4) then {
But using the old school names would be more intuitive. Adding all
five of them individually is not really a big deal, but maybe there is a
more elegant and versatile option.
Thanks
Ede
_______________________________________________
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.