LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sysstat drops a message in /var/log/messages every 10 minutes... how to stop this? (https://www.linuxquestions.org/questions/linux-general-1/sysstat-drops-a-message-in-var-log-messages-every-10-minutes-how-to-stop-this-501691/)

zan_messengrr 11-14-2006 10:53 PM

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

imagineers7 11-15-2006 02:48 AM

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

gabhainn 11-15-2006 09:40 AM

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.


All times are GMT -5. The time now is 11:45 AM.