I download and built the 5.8 sources, and did some testing, and to cut a long story short, all you need to do is change from using double-quotes to single-quotes for your string constants in RainerScript. I.e. try
if $fromhost-ip=='192.168.0.50' and $syslogseverity<=4 then ...
For other readers who may need to do a similar build,
I downloaded the 5.8 sources and configured them with debug and imfile (to use for input):
./configure --enable-debug --enable-diagtools --enable-imfile
Since I didn't want to install the files to
/usr/local, I set DESTDIR to create an installation tree under the build directory.
make install DESTDIR=$PWD/x
The rsyslogd binary is then in
The arguments to use for a standalone test config need
-u2 to not do a
-c5 forces the parsing to stay in version 5 syntax, so run with:
rsyslogd -c5 -u2 -i /tmp/pidfile -f my.conf
to which you need to add
-M$PWD/x/usr/local/lib/ to find the modules.
You can do a config file syntax check with
-N1, and run with debug with