Running rsyslog version 8.2412.0-1.el9 on Red Hat Enterprise Linux 9.6.
I'm trying to set a custom variable that I can check later in the configuration with this statement:
if $syslogtag == "MyTag" then {
set $.mytag = true;
}
I got an error message:
error during parsing file .../rsyslog.conf, on or before line 111: syntax error on token ';'
I have tried with/without the "set" keywork, the trailing ';', etc. -- always end up with some kind of syntax error.
What is the correct syntax for setting a custom variable? Thanks for any pointers!