HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

syslog not updating

 
SOLVED
Go to solution
rajesh73_1
Frequent Advisor

syslog not updating

Hi
I have PA-RISC rp4440 server with hp-ux 11.11

in /var/adm/syslog/syslog.log log is not updating the syslog.log file is empty

pls suggestion how to solve this problem

Regds
Rajesh
10 REPLIES
rajesh73_1
Frequent Advisor

Re: syslog not updating

Hi
see the below output

$ more /var/adm/syslog/syslog.log
$

Regds
Rajesh
SoorajCleris
Honored Contributor
Solution

Re: syslog not updating

Hi,

Check syslogd is running. Is there any errors in rc.log

when it is noticed for the firsttime?

use #logger command and just try to log something manually

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Matti_Kurkela
Honored Contributor

Re: syslog not updating

Read /etc/syslog.conf. Has it been customized to store the logs elsewhere?

You can find a factory default version of the configuration file at /usr/newconfig/etc/syslog.conf. To see the differences, use this command:

diff /usr/newconfig/etc/syslog.conf /etc/syslog.conf

Is the syslogd daemon running? If it has died (for example, because the system has been completely out of memory for a while, then recovered without rebooting), syslog messages won't be stored anywhere.

MK
MK
AnthonySN
Respected Contributor

Re: syslog not updating

restart the syslogd deamon
by
/sbi/init.d/syslogd stop
/sbi/init.d/syslogd start
Akif_1
Super Advisor

Re: syslog not updating

Hi Rajesh,

Check below syslog file permissions and demon alive or dead.


# cd /var/adm/syslog/
# ll
total 20112
-rw-r--r-- 1 root root 9083 May 28 00:26 OLDsyslog.log
-r--r--r-- 1 root root 10236438 Jun 26 11:09 mail.log
-rw-r--r-- 1 root root 19059 Jun 26 01:04 syslog.log
# ps -ef |grep syslog*
# ps -ef |grep syslogd
root 631 1 0 May 28 ? 0:01 /usr/sbin/syslogd -D
#

Rgd's
T(ogether) E(very one) A(chive) M(ore)
rajesh73_1
Frequent Advisor

Re: syslog not updating

Hi all

thank you very much for your support

i think my syslogd file is correpted i copy the syslogd file from another same server configuration after re start the syslog now it is working

is this correct way?

Thank & Regds
Rajesh
AnthonySN
Respected Contributor

Re: syslog not updating

better option would have been as i had read in another post.
cp /var/adm/syslog/syslog.log /var/adm/syslog/syslog.log.old
empty the syslog file by
>/var/adm/syslog/syslog.log

tail -100 /var/adm/syslog/syslog.log.old >> /var/adm/syslog/syslog.log

/sbin/init.d/syslogd start

then you can delete /var/adm/syslog/syslog.log.old
rajesh73_1
Frequent Advisor

Re: syslog not updating

Thankyou for all

SSJ

sorry i did it rplace the syslogd thankyou

Regds
Rajesh
rajesh73_1
Frequent Advisor

Re: syslog not updating

Thankyou for all support
P Muralidhar Kini
Honored Contributor

Re: syslog not updating

Hi rajesh,

For more details about syslogd -
http://docs.hp.com/en/B2355-90681/syslogd.1M.html

>> i think my syslogd file is correpted
Do you backup your disk ?
in that case you can restore the syslogd from the backup.

Regards,
Murali
Let There Be Rock - AC/DC