syslog configuration and log lvl

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat syslog configuration and log lvl
# 1  
Old 03-08-2011
syslog configuration and log lvl

Hello
I was getting hammered in /var/log/messages from snmpd becouse it was running a jira which was sending email everytime someone updated a case or made any changes.
Therefor I decided to turn down the loglvl of snmpd, so what I did was add
Code:
snmpd.notice;

to

Code:
 [root@jira ~]# 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;snmpd.notice;mail.none;authpriv.none;cron.none           /var/log/messages

From googeling I am under the impression that setting log lvl to notice will give me notice and all lvls above to /var/log/messages. err, crit and so on...

After editing I did
Code:
[root@jira ~]# service syslog restart
Shutting down kernel logger:                               [  OK  ]
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]

Now here is a something I'am a bit worried about
After restarting syslogd
This is my last entrie in messages:
Code:
Mar  8 16:17:58 jira kernel: Kernel logging (proc) stopped.
Mar  8 16:17:58 jira kernel: Kernel log daemon terminating.
Mar  8 16:18:00 jira exiting on signal 15

Now little over two hours later there are no new entries in the /var/log/messages. This could be fine since messages was basically filled with snmpd messages and nothing more. Just that those last three entries got me a bit nervus. Any thoughts on this? Is there a smooth way to send a test message to syslog from terminal or something to just see if everything is as it should?
# 2  
Old 03-08-2011
See man logger, listed on man syslog() ?
# 3  
Old 03-09-2011
solved it
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. Os: Red Hat 6 here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate ... (3 Replies)
Discussion started by: bentech4u
3 Replies

2. UNIX for Advanced & Expert Users

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate /sbin/service httpd... (1 Reply)
Discussion started by: bentech4u
1 Replies

3. HP-UX

HPUX syslog configuration

Hi all, We have few HPUX servers. Our monitoring server collects their CPU usage info, memory info and disk info in 5 min time interval. Now, problem is massive access log from monitoring server logged in syslog.log on all hpux servers. How can we prevent these access logs to be logged... (2 Replies)
Discussion started by: sembii
2 Replies

4. Solaris

best configuration for syslog.conf

I would like to configure the syslog.conf to have a good monitoring information about my system. do you have any idea about best configuration from your experience in your Data Centers BR, (5 Replies)
Discussion started by: maxim42
5 Replies

5. UNIX for Advanced & Expert Users

rotate modsec log with logrotate in the global configuration

Hello Experts, I have an apache 2.2.17 on solaris 10 that I am not sure if I, could list the following in the global settings in httpd.conf. I tested it in the Virtual host section of httpd.conf and, it works but, not sure if I can do it in the global settings. Any help would be greatly... (0 Replies)
Discussion started by: afadaghi
0 Replies

6. UNIX for Dummies Questions & Answers

syslog.log - hp-ux

Hi, Following error message apeared in the syslog.log file of our hps2_dc server. Mar 10 17:22:12 hps2_dc vmunix: 0/4/0/0.1.3.255.14.1.0 sctl Mar 10 17:22:31 hps2_dc vmunix: 0/4/0/0: Unable to access previously accessed device at nport ID 0x10300. Could it be a hardware problem related... (4 Replies)
Discussion started by: mhbd
4 Replies

7. Shell Programming and Scripting

A script for converting raid configuration log messages to ChangeLog files. ....

hi to all am new to shell scripting..itz very urgent. when i excuting the command metastat(raid configuration info) it will display some information. #metastat d1:submirror status: okey pass:1 d2:submirror staus:okey d3:submirror staus:error if staus is okey.no problem.once i... (0 Replies)
Discussion started by: arjunreddy3
0 Replies

8. Shell Programming and Scripting

Finding your current run lvl

The title says it all really. I am writing a shell script for a Linux box, and I have recently run into a problem. I need to make sure I am at a certain run level first. Hence, the question. How can I find out what run level the box is currently running at? Is there a system variable... (2 Replies)
Discussion started by: Scripting Newb
2 Replies

9. Linux

syslog configuration

Hi I have redhat linux v9.x. This is acting as a syslog server. I have a 1700 series cisco router I would like to log all the activity of my cisco router on my syslog server. Please anyone help me to configure it Regards, Raja (0 Replies)
Discussion started by: RajaRC
0 Replies

10. UNIX for Advanced & Expert Users

syslog.log (HP-UX)

How can I setup the syslog.log file ? (2 Replies)
Discussion started by: salhoub
2 Replies
Login or Register to Ask a Question