Hi,

Perhaps I'm missing something, but it appears that $IncludeConfig is messing
up the evaluation order of expressions.

Given this trimmed-down configuration file, /tmp/rsyslog.conf:

$ModLoad imuxsock
:msg, contains, "testy" /tmp/test.log
& ~
*.*;auth,authpriv.none          -/tmp/syslog

I start an rsyslogd instance with it:

sudo rsyslogd -f /tmp/rsyslog.conf -d

and then run:

logger "_testy_ hello world"

As expected, I see 'hello world' logged in /tmp/test.log, not in /tmp/syslog

Now if I modify the config to:

$ModLoad imuxsock
:msg, contains, "testy" /tmp/test.log
& ~
$IncludeConfig /tmp/more.conf

and create /tmp/more.conf containing:
*.*;auth,authpriv.none          -/tmp/syslog

Now I get 'hello world' logged to /tmp/test.log and /tmp/syslog, when I
would still expect it to only appear in /tmp/test.log.

According to http://www.rsyslog.com/doc-rsconf1_includeconfig.html,
shouldn't these be logically identical?

I've tested with rsyslog 4.2.0 (Ubuntu 10.4) and 5.4.0.


Regards,
Jeff
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to