Operating System - HP-UX
1820072 Members
2541 Online
109608 Solutions
New Discussion юеВ

syslog not working even after restarting

 
kumar.s
Advisor

syslog not working even after restarting

Hi All ,

I am Facing a issue with syslog , which is not getting updated , even after rebooting the server .

I have tried restarting the daemon , Sending HUP signal to the PID & also tried restarting the server. Only while restarting the daemon the date & time on the syslog.log is changed . No information is logging in the syslog .

Is there any patchig to be dont on the server Help me to resolve the issue ,

# model
9000/800/A180c
#
#ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# more syslog.log

#ps -ef |grep syslog
root 20359 1 0 08:38:03 ? 0:00 /usr/sbin/syslogd -D -v
#
#
# kill -s HUP 20359
#
# ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# logger -t TEST "Test Message to syslog"
#
# ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:38 syslog.log
# more syslog.log

#
#
#
# /sbin/init.d/syslogd stop
syslogd stopped
#
#ps -ef |grep syslog
root 20635 17467 1 08:43:33 ttyp2 0:00 grep syslog
#
# /sbin/init.d/syslogd start
System message logger started
#
#ll syslog.log
-rw-r--r-- 1 root root 0 Sep 15 08:48 syslog.log

#
#uname -a
HP-UX inddns02 B.11.00 U 9000/800 2007484315 unlimited-user license

And my Syslog config file looks like this

more 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 *

Looking for your valuable suggestions

Thanks in advance
Sathish
7 REPLIES 7
Sameer_Nirmal
Honored Contributor

Re: syslog not working even after restarting

Take a look at this document and document and verify various things mentioned in the
document.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080027228
MarkSyder
Honored Contributor

Re: syslog not working even after restarting

The first thing I would question is disc space.

cd /var/adm/syslog
bdf -il .

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
florin_10
Frequent Advisor

Re: syslog not working even after restarting

The use of a space instead of a tab in /etc/syslog.conf will stop sylogd loging anyting.

Regards,
flg
florin_10
Frequent Advisor

Re: syslog not working even after restarting

The use of a space instead of a tab between facility.level and destination in /etc/syslog.conf will stop sylogd loging anything.

Regards,
flg
KapilRaj
Honored Contributor

Re: syslog not working even after restarting

I do not know what 'logger' does. But it looks like the sendmail logs are enabled . Why not send an email and check if the log is updated ?.

Regds,

Kaps
Nothing is impossible
Jan de Haas_3
Frequent Advisor

Re: syslog not working even after restarting

If you're not sure if the problem is with your syslog.conf file, get a fresh one from the /usr/newconfig/etc dir.

Restart syslogd and see if it works with the fresh syslog.conf.
RAC_1
Honored Contributor

Re: syslog not working even after restarting

Coulple of things to check.
1. Syslog.conf (the clumn seperator is tab and not space.)
2. Is logging enabled? inetd -l (to hardcode the changes, check /etc/rc.config.d/inetd file.
3. Does logger command works?
4. Space issues?
There is no substitute to HARDWORK