1834149 Members
2201 Online
110064 Solutions
New Discussion

/dev/log syslog problem

 
SOLVED
Go to solution
Dan Matlock_1
Regular Advisor

/dev/log syslog problem

we have a strange problem here.... syslogd doesn't seem to write to syslog.log. When I use the logger cmd, it writes to /dev/log and not syslog.log. Not sure how to fix this. Bouncing the syslogd shows the start/stop, but nothing else writes.....
3 REPLIES 3
Denver Osborn
Honored Contributor

Re: /dev/log syslog problem

What do the contents of your /etc/syslog.conf file look like?

cat /etc/syslog.conf

When you stop/start syslogd, nothing was written to /var/adm/syslog/syslog.log? And you also checked /var isn't a full filesystem?

-denver
Bill Hassell
Honored Contributor
Solution

Re: /dev/log syslog problem

/etc/syslog.conf controls where and how syslogd writes messages. Try this to see if syslog.conf was changed:

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

If there is no output, then make sure your patches for syslogd are up to date. If there are differences listed in the above command, temporarily replace syslog.conf:

cp /etc/syslog.conf /etc/syslog.conf.old
cp /usr/newconfig/etc/syslog.conf /etc/syslog.conf

Now restart syslogd:

kill -HUP $(cat /var/run/syslog.pid)

(or you can use the start/stop script for syslog)


Bill Hassell, sysadmin
Dan Matlock_1
Regular Advisor

Re: /dev/log syslog problem

Thanks for the comments. I did check the newconfig file yesterday, and found differences. I rolled it into place. I did notice that 'someone' earlier in the day add some tivoli stuff, and quite possibly corrupted the file. Anyway it works now, thanks!