LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2003, 11:59 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Logging kernel messages


How can I log kernel messages to a file? Currently, all my kernel
messages are spewed to the console. I get lots of annoying
messages when loading kernel modules, bringing up network
interfaces etc. I tried editing the kern.* entry syslog.conf to
to log the messages to a log file but it doesnt help. Is there some
other configuration I need to change?
 
Old 01-03-2003, 12:27 PM   #2
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
Could you post your syslog.conf?
 
Old 01-03-2003, 01:00 PM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dazk
Could you post your syslog.conf?
kern.* /var/log/kernel.log
*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure.log
mail.* /var/log/mail.log
cron.* /var/log/cron.log
*.emerg *
uucp,news.crit /var/log/spooler.log
local7.* /var/log/boot.log
 
Old 01-03-2003, 09:18 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It looks like kern.* is already going to /var/log/kernel.log. Your console messages are probably coming from *.emerg.
 
Old 01-03-2003, 09:45 PM   #5
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
I think so, too. Do you get messages if you su to root and things like that? Then it's probably the *.emerg line since those messages arrive at the console
 
Old 01-04-2003, 03:57 AM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by stickman
It looks like kern.* is already going to /var/log/kernel.log. Your console messages are probably coming from *.emerg.
I tried changing that. Still didn't work.
 
Old 01-04-2003, 04:02 AM   #7
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
Hmm, I once checked out various kernel security enhancements. Some of them spit out security related messages to consoles. Do you have something like that?
 
Old 01-04-2003, 04:43 AM   #8
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dazk
Hmm, I once checked out various kernel security enhancements. Some of them spit out security related messages to consoles. Do you have something like that?
Nope. It's a stock RH7.1 kernel (2.4.2-2).
 
Old 01-04-2003, 06:11 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
After trying the advice from dazk's 2nd post, did you restart syslogd? If not, retry and "kill -HUP syslogd". Should be OK then.
 
  


Reply


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
Logging Console Boot Messages candyman123 Linux - General 5 06-19-2005 02:38 PM
logging bootup messages to textfile? cast55 Debian 2 02-19-2005 05:56 PM
console logging messages srns Red Hat 2 09-13-2004 04:18 PM
Stop Printer Messages Logging to TTY Cyyb Linux - General 2 06-20-2003 02:02 PM
logging external messages with syslogd slawomir Linux - Networking 3 09-04-2002 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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