LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-05-2005, 02:29 PM   #1
danimallv
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Redirecting console output to file.


We remotely administer a handful of RedHat ES 3 boxes. I'd like to somehow see if there are any error messages popping up on the console. Problem is getting a monitor to the particular location is going to be quite a mess. Is there someway to get all those messages to go to a log file?

I'm thinking we have some type of hardware issue and am looking for that output to point us in a direction for plan of attack.

Any help is appreciated.

-d

Last edited by danimallv; 07-05-2005 at 02:31 PM.
 
Old 07-05-2005, 02:33 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you are using syslog then take a look at /etc/syslog.conf

It is likely that they are already going to a file but that will show you where.
 
Old 07-05-2005, 02:39 PM   #3
danimallv
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Well.. I did set kern.* to go to /var/log/consle instead of /dev/console

Is that going to catch everything?
 
Old 07-05-2005, 02:42 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You can also make it easy by setting up a central syslog (loghost) server where all your syslog logs can send logs to..

Check the man page for more details.
 
Old 07-05-2005, 02:44 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It will catch all kernel messages. Remember to restart syslog after changing the config file.

If you "man syslog.conf" you'll see all of the available faclilities and priorities.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting socket output to a file elmafiacs Programming 1 10-15-2005 05:18 AM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
redirecting output of compile to a file halfcan Linux - Hardware 1 02-05-2005 10:01 PM
Redirecting mplayer output driptray Linux - Software 1 10-12-2004 07:42 AM
redirecting cpio screen output to file rawii Solaris / OpenSolaris 1 02-11-2004 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 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