Skip to contentSkip to conversation

Default syslog level from -j LOG

DISCUSSION Oliver Schulze L. 2 participants 4 messages Apr 10, 2007 – Apr 13, 2007

lore
Share & tools
lore
#0 lore raw

Hi,
I'm trying to get all the iptables log messages out of /var/log/messages in a Centos 4.4 server.

I tryied using this config in iptables and syslog and it still gets into /var/log/messages

# iptables -j LOG --log-level crit

in /etc/syslog.conf
------------------------------------------
kern.crit /var/log/critical
kern.none;.... /var/log/messages

# have no other call to kern o crit in syslog.conf
------------------------------------------

Any help is welcomed

Thanks
Oliver

Signature · 2 lines
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver 
#1 lore raw

I forget to explicitly ask:
what is the default syslog level for the LOG target?

Thanks
Oliver

Signature · 2 lines
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver 
#2 lore raw

Hello,

Quoted 1 line · Oliver Schulze L.

what is the default syslog level for the LOG target?

You should file a bug report against CentOS for providing a broken manpage for iptables. Mine says :

--log-level level
Level of logging (numeric or see syslog.conf(5)). The default level is warning.

#3 lore raw

I have an old iptables I think (iptables v1.2.11):
--log-level level
Level of logging (numeric or see syslog.conf(5)).

Thanks!
Oliver

Quoted 5 lines · Pascal Hambourg

--log-level level
Level of logging (numeric or see syslog.conf(5)). The default level is warning.

Signature · 2 lines
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver