LinuxQuestions.org
Review your favorite Linux distribution.
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 11-14-2006, 10:53 PM   #1
zan_messengrr
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Sysstat drops a message in /var/log/messages every 10 minutes... how to stop this?


Hi all thanks for taking the time to read my message!

My /var/log/messages file is totally filled with messages from sysstat (every 10 minutes): for example:

crond(pam_unix)[13066]: session opened for user root by (uid=0)

This happens because /etc/cron.d/sysstat is set for it to run every 10 minutes :

*/10 * * * * root /usr/lib/sa/sa1 1 1

Ok, that's cool, I want it to run every 10 minutes, but NOT log this in the /var/log/messages file, because this logfile is so full of these messages it gets really hard to find "other" messages which might be important, when I review the logfiles...

Any hints on how to run the program every 10 minutes and not log it in /var/log/messages ?

Thanks a lot!

//Zan
 
Old 11-15-2006, 02:48 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi zan_messengrr,


Welcome to linuxquestions.org.


Don't use vi / less to read the messages in var log . use grep or tail for it so that you can find the relevent messages that you need.


Also it is cron which is making log entries, right now I am not sure how to stop it, but will try to find it out.



Aniruddha
 
Old 11-15-2006, 09:40 AM   #3
gabhainn
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 5
add cron.none to the syslog.conf line for your logfile to totally suppress messages from crond - like this:

*.info;mail.none;authpriv.none;cron.none /var/log/messages

This will suppress ALL syslog messages from cron - you may want to try cron.warning so that you'll get warning messages or higher priority.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/messages keep repeating this message, am i hacked? grant-skywalker Linux - Security 3 12-10-2005 12:36 PM
cron 'test' message in my /var/log/messages file visaris Linux - Newbie 1 12-13-2004 04:03 PM
Trigger script by message in /var/log/messages? Zoidy Linux - Software 3 01-17-2004 12:03 AM
Odd recurring message in /var/log/messages tarballedtux Linux - General 4 05-21-2003 08:28 PM
Recurring inetd error message in /var/log/messages jkcunningham Linux - Networking 6 08-27-2002 08:00 PM

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

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