1833016 Members
2258 Online
110048 Solutions
New Discussion

OLDSyslog.log

 
SOLVED
Go to solution
nibble
Super Advisor

OLDSyslog.log

hi guys,

i noticed that the'res an OLDsyslog.log file in the /var/adm/syslog/ directory and obviously, its the previous syslog.log that's being archive once the system is rebooted. my concernt is, where can i find the configuration of moving the current syslog.log into OLDsyslog.log? what startup file?

thanks in advance...
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor
Solution

Re: OLDSyslog.log

Hi,

When the system is coming up after a reboot, this is done through the startup script /sbin/init.d/syslogd.
Have a look at this script.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor

Re: OLDSyslog.log

/sbin/init.d/syslogd does that. Check that file.
There is no substitute to HARDWORK
Jeff Schussele
Honored Contributor

Re: OLDSyslog.log

Be advised that these type startup scripts are fair-game for over-write on upgrades/patches, so any mods made should be backed up.

My $0.02,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor

Re: OLDSyslog.log

That's not the only file on the system that does that, check out /var/adm/OLDsulog, /var/adm/OLDwtmp, /var/adm/OLDbtmp as well.
Anyone for a Mutiny ?
Christian Gebhardt
Honored Contributor

Re: OLDSyslog.log

Hi

you can put something like that in the start section of the file
/sbin/init.d/syslogd

old:
if [ -f /var/adm/syslog/syslog.log ]; then
mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log

new

SUFFIX=`date "+%y%m%d%H%M"`
if [ -f /var/adm/syslog/syslog.log ]; then
mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log.$SUFFIX

then you have a history of all syslog-files

Chris
nibble
Super Advisor

Re: OLDSyslog.log

thanks