Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 12-27-2003, 11:42 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Houston, TX
Distribution: RedHat 9, Fedora Core 1, Slackware 9.1
Posts: 11

Rep: Reputation: 0
Syslog and iptables, output going to console

I turned on kernel logging of packets using "LOG" with iptables. The output would be logged to the file I specified in syslog.conf but it was also going to the console. While searching for the answer noticed other people were having the same problem. Set level to debug, it will keep the messages in the logs but off the console.
Old 12-29-2003, 10:07 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
There are two other things to look at as well..
in /etc/syslog.conf, look for an entry /dev/console
RedHat and like often have.. kern.* /dev/console

Adjust that to kern.notice which limits the output to notice or worse, or comment it out..
notice has a loglevel of 5
info has a loglevel of 6
debug has a loglevel of 7
(the lower the number, the more important is the message.)

2nd, there is a default console logging level setting at boot
which can be read from /etc/sysconfig/init, usu LOGLEVEL=3
or in Debian, /etc/init.d/functions, LOGLEVEL=1

More details from man syslog.conf or this Linux Journal article


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog messages on SLES9 console MrHPUX Linux - Software 0 10-13-2005 01:44 PM
No output to /var/log/messages or ~syslog eelriver Slackware 5 07-18-2004 05:13 AM
separating syslog output by application mscott Linux - Software 0 03-08-2004 11:45 AM
syslog, iptables, and customizing the output JFoster Linux - General 0 11-29-2003 01:12 AM
syslog output vexer Slackware 5 06-18-2003 02:45 AM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration