Subject: syslog issues
To: None <netbsd-help@netbsd.org>
From: Bsd Neophyte <bsdneophyte@yahoo.com>
List: netbsd-help
Date: 03/13/2003 00:57:23
i want to be able to log my firewall and my router to separate files.  i
want each item, log states 0-7, to be put recorded in a separate file

i know in freebsd if you put the "=" before the type of notification
(local0.=debug as an example) you will only record that level of
notifications to a file.

this is what i have, but right now, nothing looks to be getting logged.

and yes, i did touch the files, so they all exist.

another thing, is there a way to indicate you want syslogd to record only
from particular ip addresses... sorta like the freebsd "-a" option?

--------
# Firewall
local0.=emerg                                          
/var/log/router-logs/local0.emerg
local0.=alert                                          
/var/log/router-logs/local0.alert
local0.=crit                                           
/var/log/router-logs/local0.crit
local0.=err                                            
/var/log/router-logs/local0.err
local0.=warn                                           
/var/log/router-logs/local0.warn
local0.=notice                                         
/var/log/router-logs/local0.notice
local0.=info                                           
/var/log/router-logs/local0.info
local0.=debug                                          
/var/log/router-logs/local0.debug

# Router
local1.=emerg                                          
/var/log/router-logs/local1.emerg
local1.=alert                                          
/var/log/router-logs/local1.alert
local1.=crit                                           
/var/log/router-logs/local1.crit
local1.=err                                            
/var/log/router-logs/local1.err
local1.=warn                                           
/var/log/router-logs/local1.warn
local1.=notice                                         
/var/log/router-logs/local1.notice
local1.=info                                           
/var/log/router-logs/local1.info
local1.=debug                                          
/var/log/router-logs/local1.debug
-----------------

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com