linux not logging
I have a system running RH 7.0 and everything seems to be running normally but nothing gets logged to /var/log/messages ,/var/log/secure, /var/log/cron, and /var/log/maillog. The only logs that work at last, wtmp, and http.
syslogd,klogd, and minilogd are all running. I can see the filestamps change and the logs even get rotated but no matter what I do, nothing gets logged. sa also works. Logging used to work fine. |
have you checked your /etc/syslog.conf file....
|
Here is my /etc/syslog.conf file. It looks prety normal.
# 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 /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, plus log them on another # machine. *.emerg * # Save mail and news errors of level err and higher in a # special file. uucp,news.crit /var/log/spooler # Save boot messages also to boot.log local7.* /var/log/boot.log |
Try giving the syslog and klogd the SIGHUP kill.. I do this on my machine to kill and restart the process:
kill -SIGHUP `cat /var/run/syslogd.pid` |
Sure, I have killed and restarted both syslogd and klogd many. many times. Although I usually use /etc/init.d/syslog restart to do it. Restartring logging has no effect.
I just have a bunch of files with nothing in them. And yes I have plenty of free disk space. |
All times are GMT -5. The time now is 03:03 AM. |