How does rsyslog determine order from the configuration files in
/etc/rsyslog.d/*.conf?

I have the following files in that directory

01-ommail.conf
10-iptables.conf
20-messages.conf
21-authpriv.conf
22-mail.conf
23-cron.conf
24-emergency.conf
25-spooler.conf
26-boot.conf
30-all.conf
50-remote.conf

I named them in what I *thought* was a way to apply them in the order I
wanted but what I'm finding out is that's not the case. I put the following
into 10-iptables.conf in an attempt to have those entries only in that
logfile

#
# Log all firewall entries to iptables.log
#
:msg, startswith, "IPTABLES (eth0) Drop: " -/var/log/iptables.log
& ~
:msg, startswith, "IPTABLES (wlan0) Drop: " -/var/log/iptables.log
& ~

and I get the entries in both /var/log/iptables and /var/log/messages. So
far the only way I've found to ensure those entries are only in
/var/log/iptables is to put them in /etc/rsyslog.conf. Is this the only way
or am I overlooking something?
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to