1753770 Members
5316 Online
108799 Solutions
New Discussion

OLDsyslog issues

 
NDO
Super Advisor

OLDsyslog issues

Hi

 

I am running 11.31, and I would like to keep copies of OLDsyslog.log when a system reboots, Pls can you help how to implement this?

 

 

2 REPLIES 2
rariasn
Honored Contributor

Re: OLDsyslog issues

Hi Nandhino:

 

# cd /sbin/inid.d

# cp -p syslogd syslogd.old

 

Modifify "syslogd" file

 

 # If the OLDsyslog.log file exists...

 

                         if [ -f /var/adm/syslog/OLDsyslog.log ]

                         then

                              mv /var/adm/syslog/OLDsyslog.log /var/adm/syslog/OLDERsyslog.log

                         fi 

                        if [ -f /var/adm/syslog/OLDsyslog.log ]
                        then
                                # If PREV_OLDSYSLOG_LINES is not set correctly, assume default value 0.

 

rgs