LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-30-2008, 12:04 PM   #1
split917
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 1
CentOS 5 - Need assistance with disabling logging to console


Happy holidays to all!

I can't seem to find anything to tell me exactly how to disable logging to the console. The problem is that ALL messages logged to /var/log/messages are also displayed on the console. For anyone that has experienced this, it can be very annoying.

Below is my /etc/sysconfig/syslog and /etc/syslog.conf files. I've compared them to other servers but I haven't found any differences between these files. I'm either missing something in the files or I'm looking in the wrong places.

Any help would be appreciated.

-danny

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cat /etc/sysconfig/syslog
# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-m 0"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-x"
#
SYSLOG_UMASK=077
# set this to a umask value to use for all log files as in umask(1).
# By default, all permissions are removed for "group" and "other".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cat /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# The authpriv file has restricted access.
authpriv.* /var/log/secure

# Log all the mail messages in one place.
mail.* -/var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log
*.* *
 
Old 12-31-2008, 05:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try 'dmesg -nlevel', where level is a priority as explained in syslog.h (basically int 0 through 7)?
 
  


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
Disabling logging in Firestarter lokee Linux - Software 3 04-24-2009 12:02 PM
Assistance with SNMP on Redhat/CentOS stuaz Linux - Newbie 2 12-11-2008 09:46 AM
SELinux - disabling in CentOS 5.1 prevents LVM from loading and/or booting tiber Linux - Software 2 02-09-2008 04:51 AM
Help Needed - Logging Users Out and Clearing cache or disabling back/forward buttons anthonysaulnier Programming 0 10-17-2005 11:29 AM
Disabling console commands? Kage Linux - Newbie 4 02-09-2002 12:38 PM

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

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