Operating System - HP-UX
1833566 Members
3242 Online
110061 Solutions
New Discussion

Re: syslog not getting updated

 
SOLVED
Go to solution
Animesh Chakraborty
Honored Contributor

syslog not getting updated

Hi All,
I have noticed that syslog file is not getting updated for last seven days in one of my V- class server with HP-UX 11.
What may be the reason ?.
I have not rebooted the server for last 33 days.
Thanks in advance
Animesh
Did you take a backup?
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: syslog not getting updated

Hi:

Two immediate thoughts/questions: (1) Is the 'syslogd' daemon running? [ ps -ef|grep syslogd ]; and/or (2) Did you (re)move the syslog instead of trimming it by redirecting /dev/null into it?

...JRF...
Matt Livingston
Valued Contributor
Solution

Re: syslog not getting updated

I had a similar problem once on 10.20 when I manually renamed syslog.log to syslog.old syslogd continued to write to the same file (now named syslog.old) while the new one (syslog.log) remained empty.

I restarted syslogd to resolve it.

If syslogd is running, but not writing anything to your syslog.log, there's no harm in shutting it down and restarting it. If syslogd is not running, well that's what your problem is, and you'll need to start it.

Other things to check:
Whether or not the filesystem is full.
Check the lost+found directory of syslog.log's filesystem. If syslog.log was deleted while syslogd was running, that's where it should be until syslogd is shut down.
Ajitkumar Rane
Trusted Contributor

Re: syslog not getting updated

You should check for the "syslogd" daemon which actually updates the syslog file as well as send errors to the console. Or else did someone change the error level for syslog.

Goodluck !
Amidsts difficulties lie opportunities
Bruce Regittko_1
Esteemed Contributor

Re: syslog not getting updated

Hi,

...And if all of the above fail, check /etc/syslog.conf. Perhaps some one has directed syslogd to use another file. If this is so, you will have to send syslogd a HUP signal to get it to reread syslog.conf after you edit it.

kill -s HUP
www.stratech.com/training
Animesh Chakraborty
Honored Contributor

Re: syslog not getting updated

A big thanks to you all for help.
Though my syslogd daemon was running,I stoped and restarted it and syslog.log started updaing now.
Thanks
Animesh
Did you take a backup?