Operating System - HP-UX
1847858 Members
2106 Online
104021 Solutions
New Discussion

Re: syslogd is not logging

 
SOLVED
Go to solution
ROSS HANSON
Regular Advisor

syslogd is not logging

My hpux 11i system is logging the mail just fine
but for some reason when you do a ll in
/var/adm/syslog syslog.log shows 0
the permissions are 644 and owned by root:root
I have stopped and restarted the syslogd daemon but that does not seem to help.
What do I do??
Ross Hanson
5 REPLIES 5
Sundar_7
Honored Contributor
Solution

Re: syslogd is not logging

What do you have in /etc/syslog.conf ?

restore the default /etc/syslog.conf if you dont have any customization

# cp /usr/newconfig/etc/syslog.conf /etc/
# kill -1 `cat /var/run/syslogd.pid`

- Sundar.

Learn What to do ,How to do and more importantly When to do ?
James George_1
Trusted Contributor

Re: syslogd is not logging

check in /etc/syslog.conf to make sure that your logs are directed to /var/adm/syslog/syslog.log . You should see something like this in your syslog.conf

mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log

Good Luck

James
forum is for techies .....heaven is for those who are born again !!
Ken Penland_1
Trusted Contributor

Re: syslogd is not logging

also make sure there are tabs seperating fields in your syslog.conf instead of spaces...if you have spaces in there it wont work
'
Marlou Everson
Trusted Contributor

Re: syslogd is not logging

Did you do a ps -ef | grep syslogd to make sure it is really running?

Also, you can use logger(1) to do a test and actually write a line in the log file.

Marlou
HGN
Honored Contributor

Re: syslogd is not logging

Hi

You need to check the syslog.conf file ,try and see if there was any changes made to it, if still you are not clear try and restore a old working copy after that stop and start the syslogd daemon, this should start working.If you have edited there might be some extra characters in the syslogd.conf file for example you have to use tab instaed of space bar, you can check again to amke sure.

Rgds

HGN