Re: putting all logs in a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am an idiot.. sorry.. The log-level covers items like 

emerg
alert
crit
err
warning
notice
info
debug

It should be use something like info and then put a line in syslog.conf
for 

kern.info /var/log/iptables

My apologies for the early morning stupidity.



On Wed, 2003-09-10 at 09:11, Jeffrey Laramie wrote:
> 
> Stephen Smoogen wrote:
> > You can change the log level with the --log-level addtion to any -j LOG 
> > lines
> > 
> > LOG_LEVEL="local1"
> > -j LOG --log-level ${LOG_LEVEL} --log-prefix " Blah "
> > 
> > Then have local1 in /etc/syslog.conf go to /var/log/iptables.log
> >   
> 
> I also wanted to do this, so I tried it and iptables balked with:
> 
> iptables v1.2.7a: log-level 'local1' unknown
> 
> I checked my syslog.h file and found that 'local1' was an alias for
> the LOG_LOCAL1 facility and not defined as a priority (log level).
> Suggestions?
> 
> Jeff
-- 
Stephen John Smoogen		smoogen@xxxxxxxx
Los Alamos National Labrador  CCN-5 Sched 5/40  PH: 4-0645 (note new #)
Ta-03 SM-1498 MailStop B255 DP 10S  Los Alamos, NM 87545
-- So shines a good deed in a weary world. = Willy Wonka --



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux