Hi Jeff,

that should not make any difference and I do not see how it could with the
statements you give (if you have an async action queue, that would be
different). I'll try to reproduce it later today.

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Jeff Turner
> Sent: Monday, June 14, 2010 11:02 AM
> To: [email protected]
> Subject: [rsyslog] IncludeConfig breaking config ordering?
> 
> 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
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to