1837078 Members
2540 Online
110112 Solutions
New Discussion

Re: OLD.syslog.log error

 
Jestin John Chacko
Regular Advisor

OLD.syslog.log error

Hai to all

I am facing with a strange problem whenever my server undergoes reboot old syslog gets refreshed from that time .that means i am getting only the log data from the last reboot only (both logs oldsyslog.log and syslog.log are showing the same data rather than being updated by the time stamp)


Can i find the same syslogs generated in any other locations other than this so that i can identify any critical changes happened to the server os.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: OLD.syslog.log error

Check you /sbin/init.d/syslogd script. The relevant portion should look like this:

'start')
#
# Set SYSLOGD_OPTS.
#
if [ -f /etc/rc.config.d/syslogd ]; then
. /etc/rc.config.d/syslogd
else
echo "ERROR: /etc/rc.config.d/syslogd defaults file MISSING"
fi

if [ -x /usr/sbin/syslogd -a -f /etc/syslog.conf ]; then
if [ -f /var/adm/syslog/syslog.log ]; then
mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.
log
mask=`umask`
umask 022
> /var/adm/syslog/syslog.log
umask $mask


Pete

Pete
Jestin John Chacko
Regular Advisor

Re: OLD.syslog.log error

Dear peter ,

Thanks for your quick reply

I had checked the the scripts it looks some what similar,what i have to do next so that i can recover my old logs??
OldSchool
Honored Contributor

Re: OLD.syslog.log error

unless you can recover them from a backup, then "gone" is "gone"