Solved

Linux Syslog stopping

Posted on 2011-02-21
3
650 Views
Last Modified: 2012-05-11
I have a RHEL5 server and the syslog daemon will stop after running for a period of time. The actual service is still running but no logs are populating. If I restart the service, it will start logging again. Thanks in advance.
0
Comment
Question by:buckethead34
3 Comments
 
LVL 5

Accepted Solution

by:
zazagor earned 125 total points
ID: 34944331
Hi,

Are you runnig out of disk?
I think that syslog will stop logging if the disk is getting to full.

//zaZagor
0
 
LVL 77

Expert Comment

by:arnold
ID: 34944367
run fuser /var/log/syslog* and see whether a prior version of syslog file is not being written to.
alternative you can get the PID of syslog and then run lsof -p <pid_of_syslog> and there you can see to which file syslog is bound.
another option with/use of the syslog pid is to run strace -f -p <pid_of_syslog> and see what it is doing.
0
 
LVL 3

Expert Comment

by:ivailoj
ID: 34949411
Do all log stopped or only syslog?

tail /var/log/syslog
and see last log time

check when for last time log file is changed:
ls -lrt

check:
logrotate
may be logrotate can't restart syslogd after rotating log files!

check:
dmesg

Give output of commands here.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question