1753481 Members
4244 Online
108794 Solutions
New Discussion юеВ

syslog not found

 
SOLVED
Go to solution
Gurumanickam
Frequent Advisor

syslog not found

hi all,

After restarting the server, im not able to find my syslog.log file under /var/adm/syslog. now system is logging all the events under /var/adm/syslog/OLDsyslog. how to change it.

regards

Guru
Be an expert
5 REPLIES 5
spex
Honored Contributor

Re: syslog not found

Guru,

First make sure that your /etc/syslog.conf file contains an entry similar to:

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

Then send a SIGHUP to syslogd:

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

PCS
Gurumanickam
Frequent Advisor

Re: syslog not found

hi spex,

there is no file /var/run/syslog.pid when i run the kill command im getting this error


# kill -HUP $(cat /var/run/syslog.pid)
cat: Cannot open /var/run/syslog.pid: No such file or directory
sh: kill: The number of parameters specified is not correct.
Be an expert
James R. Ferguson
Acclaimed Contributor
Solution

Re: syslog not found

Hi:

Preserve your current 'OLDsyslog' by copying it as another name if you wish to keep it and do:

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

Regards!

...JRF...
spex
Honored Contributor

Re: syslog not found

Hello (again),

syslogd does not appear to be running.

# /sbin/init.d/syslogd start
to start it.

Also make sure you have a start symlink in place so that syslogd comes up on boot:

# ls /sbin/rc?.d/S???syslogd

PCS
Gurumanickam
Frequent Advisor

Re: syslog not found

thanks for your replies. i restarted the syslog deamon, now system is logging the events on syslog.log
Be an expert