On Sat, 23 Oct 2010, Tim Uckun wrote:
On Fri, Oct 22, 2010 at 11:58 PM, Tim Uckun <[email protected]> wrote:
On Fri, Oct 22, 2010 at 11:40 PM, Rainer Gerhards
<[email protected]> wrote:
I guess the answer is simply that your file is included at the wrong spot
into the main config file. Move that code to the top of the main file and it
will work. Position-dependent rules like this and including via a directory
does not work well together.
OK I'll try that next.
I also noticed that postfix is logging to both mail.log and syslog
too. Very strange..
putting on the top of the file worked but renaming the config file
00-postfix.conf didn't even though theoretically it should have loaded
the 00-postfix conf before the 50-default.conf
Other strange happenings....
Tim,
rsyslog will log a message to however many different destinations that you
tell it to. It doesn't log it to the first match and then stop processing
the log, it continues to see if there is anywhere else that matches the
message.
if you want to have rsyslog stop processing a message after it's matched,
you have to tell it to do so explicitly.
the easy way to do this is to add a line
& ~
after the line that matches the logs you don't want to see anywere else.
the & says to use the same criteria as the last match, and the ~ says to
stop processing this message.
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com