LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Why syslog doesn't log? (https://www.linuxquestions.org/questions/red-hat-31/why-syslog-doesnt-log-497015/)

zivota 10-30-2006 02:45 PM

Why syslog doesn't log?
 
I have a problem with a syslog on RHEL4.

It doesn't log since day one although it does run.

# service syslog status
syslogd (pid 2656) is running...
klogd (pid 2660) is running...

Here is my 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;mail.none;authpriv.none;cron.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
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log

twantrd 11-01-2006 06:31 AM

Does it log anything at all? Have you tried restarting it? If it still doesn't work, hmmm...do an strace on the pid and see if it hangs up on something.

-twantrd

gparker 11-01-2006 08:48 AM

I'd use the "logger" command to test, or I'd kill the running syslogd and kick it off in debug mode (-d) and watch it in the foreground.

zivota 11-01-2006 10:56 AM

Quote:

Originally Posted by twantrd
Does it log anything at all? Have you tried restarting it? If it still doesn't work, hmmm...do an strace on the pid and see if it hangs up on something.

-twantrd

This is what I got from strace. This segment repeats on and on ... Honestly doesn't mean anything to me. If somebody can help?


Process 6427 attached - interrupt to quit
select(1, [], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigaction(SIGALRM, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, 8) = 0
alarm(30) = 0
rt_sigaction(SIGALRM, NULL, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, 8) = 0
rt_sigaction(SIGALRM, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, NULL, 8) = 0
sigreturn()


All times are GMT -5. The time now is 10:50 PM.