System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

syslog.log file is not working

SOLVED
Go to solution
Sreer
Valued Contributor

syslog.log file is not working

Hi,
Iam facing an issue in my 11.11 production box.
The syslog.log file is not growing!!
-rw-r--r-- 1 root root 0 Nov 9 05:20 syslog.log
dmsworp1-root # more /var/adm/syslog/syslog.log
dmsworp1-root #
But the daemon is running:

-root # ps -ef | grep -i syslog
root 558 1 0 Nov 9 ? 0:00 /usr/sbin/syslogd -D
root 1792 1 0 Nov 9 ? 0:00 /bin/sh ./init.tecad_logfile start syslog
root 25717 12399 0 09:45:50 pts/te 0:00 grep -i syslog
-root #


root # cat -t /etc/syslog.conf
# Tivoli logfile adapter entry, ID=syslog
*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info^I/tmp/.tivoli/.tecad_logfile.fifo.dmsworp1.syslog
# End of logfile adapter entry, ID=syslog



-root # find / -name "syslogd" -type f -exec ll {} \;
-r--r--r-- 1 bin bin 492 Feb 23 2001 /etc/rc.config.d/syslogd
-r-xr-xr-x 1 bin bin 2712 Nov 14 2000 /var/adm/sw/save/PHCO_23413/UX-CORE/sbin/init.d/syslogd
---x--x--- 1 root sys 0 Aug 26 2003 /var/adm/sw/save/PHCO_23413/UX-CORE/usr/newconfig/etc/rc.config.d/syslogd
-r-xr-xr-x 1 bin bin 28672 Nov 14 2000 /var/adm/sw/save/PHCO_23413/UX-CORE/usr/sbin/syslogd
-r-xr-xr-x 1 bin bin 3002 Feb 23 2001 /sbin/init.d/syslogd
-r-xr-xr-x 1 bin bin 28672 Feb 23 2001 /usr/sbin/syslogd
-r--r--r-- 1 bin bin 492 Feb 23 2001 /usr/newconfig/etc/rc.config.d/syslogd
-root #

Pls advice me whether can I restart the syslogd using:

/usr/sbin/syslogd -D stop

/usr/sbin/syslogd -D start


is it OK?



else pls guide me to solve this issue.
thanks in advance.

sree

5 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: syslog.log file is not working

/sbin/init.d/syslogd stop

/sbin/init.d/syslogd start


Example :-

# /sbin/init.d/syslogd stop
syslogd stopped

# /sbin/init.d/syslogd start
System message logger started
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: syslog.log file is not working

verification :-

# tail -50 /var/adm/syslog/syslog.log
Nov 12 16:09:52 uxt02 syslogd: restart
Problems are common to all, but attitude makes the difference
Horia Chirculescu
Honored Contributor
Solution

Re: syslog.log file is not working

Hello from Romania,

You do not have anything in /var/adm/syslog/syslog.log becouse you did not instructed syslogd to place anything there.

In order to do that,

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


Your current syslogd configuration put the
*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info information in the

/tmp/.tivoli.tecad_logfile.fifo.dmsworp1.syslog

file.

cat/more on this file would reveal the information.

Best regards,
Horia.
Best regards from Romania,
Horia.
Sreer
Valued Contributor

Re: syslog.log file is not working

Hello Gurus,


Thanks alot for your valuable replies.

I will do the changes suggested by Horia.

Earlier the mentioned info was not routed to syslog.log.
Once again thanks alot all!!!

rgds Sree
Aneesh Mohan
Honored Contributor

Re: syslog.log file is not working

Hi Sree,

You can check the syslog function by using "logger".

try this:-
#logger "Test message";tail -n 2 /var/adm/syslog/syslog.log

regards,
Aneesh