Operating System - HP-UX
1753426 Members
4898 Online
108793 Solutions
New Discussion юеВ

Re: syslog File not updating

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

syslog File not updating

The syslog.log file on my hpunx server is not getting updated since Jan 15, 2008. Here is the output of ll:

-rw-r--r-- 1 root root 74076 Nov 18 01:08 OLDsyslog.log
-r--r--r-- 1 root sys 11462870 Jan 18 10:34 ftpd.log
-r--r--r-- 1 root root 1382681 Jan 18 10:00 mail.log
-rw-r--r-- 1 root root 558476 Jan 15 13:54 syslog.log
-rw-rw---- 1 root root 1313721 Jan 18 10:27 xferlog

I have checked the syslogd, its working:

ps -afe | grep syslogd
root 1476 1 0 Nov 18 ? 0:35 /usr/sbin/syslogd -D

Can any one give me an idea how to troubleshoot and finx that problem, please?
6 REPLIES 6
John Poff
Honored Contributor

Re: syslog File not updating

Try using the "logger" command to see if you can write a test message to the syslog file:

logger "Some test message"

If that doesn't show up in the syslog file, you could try stopping and starting the syslog daemon.

I've seen this happen sometimes when /var gets filled up.

JP
Mridul Shrivastava
Honored Contributor
Solution

Re: syslog File not updating

Try the following to fix the issue:

# ps ├в ef |grep syslogd |grep ├в v grep
# kill ├в HUP ├в syslogd PID├в
# logger ├в t test ├в p info ├в test message├в
# tail /var/adm/syslog/syslog.log
Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: syslog File not updating

you have assigned points to 2 of 97 responses .

Please take sometime to assign the points to the guys who takes their valuable time to solve ur issue.

Please spend sometime for assigning points so they gets credit for their efforts.
Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: syslog File not updating

there were some junk characters in the last post, please find the correct one:

# ps ├в ef |grep syslogd |grep ├в v grep
# kill ├в HUP ├в syslogd PID├в
# logger ├в t test ├в p info ├в test message├в
# tail /var/adm/syslog/syslog.log
Time has a wonderful way of weeding out the trivial
S.Rider
Regular Advisor

Re: syslog File not updating

I've seen it happen where /var fills up, and you have to kick the syslogd process before it will start updating again.
Ride Boldly Ride, but watch out for El Dorado's
Jeeshan
Honored Contributor

Re: syslog File not updating

you can check if u'r syslog is updating or not?

try to ftp the server and provide the wrong password.

a warrior never quits