Because you are logging *.info to /var/adm/messages. Syslog takes the severity that you list and will log everything at that level *and* more severe to where you tell it. As such, if we look at your firewall log rules, the local.0 warning line is redundant as local0.debug will already log them.

Similarly given that you are logging *.info to /var/adm/messages, this includes what you listed earlier (*.err;kern.notice;auth.notice) and much much more (including local0.debug).

Regards,
Alan Hargreaves

On 08/08/10 18:05, schatten wrote:
Why is the syslog writing ipflogs in messages and in ipf.log? It is spamming my 
messages. Where did I do something wrong?

#firewall log
local0.warning                                  /var/log/ipf.log
local0.debug                                    /var/log/ipf.log

*.err;kern.notice;auth.notice                   /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages

*.alert;kern.err;daemon.err                     operator
*.alert                                         root

*.info;mail.none                                /var/adm/messages
*.emerg                                         *
mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err                                        /dev/sysmsg
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)

--


<http://www.oracle.com>
Alan Hargreaves | Principal Technical Support Engineer | Principal Field
Technologist
Solaris and Networking | Global Systems Support
Email: alan.hargrea...@oracle.com <mailto:alan.hargrea...@oracle.com>
Blog: alanhargreaves.wordpress.com <http://alanhargreaves.wordpress.com>
Phone: +61-2-9844-5379 | Mobile: +61-416-207-573
Oracle Global Customer Services

Green Oracle <http://www.oracle.com/commitment>   Oracle is committed to
developing practices and products that help protect the environment

        

_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to