Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Getting Rid of Unnecessary Logging

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-08-2009   #1 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 42
Getting Rid of Unnecessary Logging

I compiled my own kernel, and my kern.log and syslog files are filling up with networking logging messages such as the following:

Code:
Oct  8 14:32:48 server kernel: [619790.164937] ''IN-world':'IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:24:1d:8f:e1:97:08:00 SRC=192.168.0.102 DST=255.255.255.255 LEN=116 TOS=0x00 PREC=0x00 TTL=64 ID=52511 PROTO=UDP SPT=1035 DPT=19540 LEN=96
I guess my first question is, are these necessary? And my second question is, if not, how do I get rid of them? I'm thinking it is some kernel option, but I can't seem to find it.
Drek is offline  


Reply With Quote
Old 10-12-2009   #2 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,624
Did you compile a debuggable version of the kernel?
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline   Reply With Quote
Old 10-12-2009   #3 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 42
Not that I know of. However, I found a way to turn the logging off. I'll look it up in case anyone else is looking for the same answer.

I added the following "kern.!warning" to the rsyslog.conf file, so that the following lines looked like this:

Code:
*.*;auth,authpriv.none,kern.!warning	-/var/log/syslog
kern.*;kern.!warning				-/var/log/kern.log
That got rid of the warnings that were filling up my logs.
Drek is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:31 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2