1854783 Members
27561 Online
104103 Solutions
New Discussion

No syslog entries

 
William Allen
Occasional Advisor

No syslog entries

Entries are not being written to syslog.

I have space in /var.

Syslogd is running.

On boot the syslog is populated with boot info but stops.

An entry is made if the daemon is restarted.

Verified syslog.conf.

Hpux 10.20

Any ideas?
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: No syslog entries

It sounds like a problem with you syslog.conf file. Can you post it so we can have a look at it?
David_246
Trusted Contributor

Re: No syslog entries

Just to give you an idea of what it should be :

more /etc/syslog.conf
# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *

This is the only way syslog is going to log anything in your syslog.log. You have the *.info *.alert *.emerg
I would strongly recommend you read the manual page of syslogd. This explains it all.

Regs David
@yourservice
Rita C Workman
Honored Contributor

Re: No syslog entries

Have you just tried stopping and restarting the syslogd???

I have found that helps..


/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start


Just a thought,
Rita
Rita C Workman
Honored Contributor

Re: No syslog entries

Just thought of something after I sent...might help/might not do anything..

Check and ensure that somehow multiple syslogd's are attempting to run....Clean up if they are then try the stop and restart. If it's the case, you could then go back and see what is causing it..

Just a quick thought,
Rita


William Allen
Occasional Advisor

Re: No syslog entries

I've restart syslogd

I think my syslog.conf file looks good.

# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
Patrick Wallek
Honored Contributor

Re: No syslog entries

Rita makes a good point. What do you see if you do a:

# ps -ef | grep syslog

Is there only one syslogd process? If not, stop syslog, check again, and if there are still some running, kill them and then restart syslog.
William Allen
Occasional Advisor

Re: No syslog entries

root 5752 1 0 09:45:44 ? 0:00 /usr/sbin/syslogd -D
root 6893 5653 3 11:57:19 ttyp4 0:00 grep syslog
Rita C Workman
Honored Contributor

Re: No syslog entries

Woohoo...now for me, just seeing I made a good point is worth it all!

Especially coming from you, Patrick !

Many Thanks !!
Rita