trimming /var/adm/messages & /var/adm/syslog

trimming /var/adm/messages & /var/adm/syslog

Post by Jerry Lyn » Sun, 17 Sep 1995 04:00:00



Is there any program out there that will help keep my messages & syslog
files at a reasonable size?  I was thinking about writing a shell script
to remove any lines from more than five days ago, but I thought I would
ask if something was available before going through the trouble.

Thanks.


 
 
 

trimming /var/adm/messages & /var/adm/syslog

Post by M??tt?nen Tuom » Fri, 22 Sep 1995 04:00:00



> Is there any program out there that will help keep my messages & syslog
> files at a reasonable size?  I was thinking about writing a shell script
> to remove any lines from more than five days ago, but I thought I would
> ask if something was available before going through the trouble.

        I use chklogs available from sunsite.unc.edu:
        /pub/Linux/system/Admin/chklogs-1.5.tar.gz.

Begin3
Title:          chklogs:  Check Logs
Version:        1.5
Entered-date:   1 May 1995
Description:    A Perl script (can be cronned) for maintenance of system
                logs. It checks your list of system logs against maximum
                allowed sizes specified by you. It gives a report on
                stdout, or mails the system admin. Can also archive them.
Keywords:       System logs, monitor, archive, maintain


Primary-site:   ftp.iaehv.nl:/pub/users/grimaldo/
                   6306  chklogs-1.5.tar.gz
Alternate-site:  sunsite.unc.edu: ???
                   6306  chklogs-1.5.tar.gz
                    767  chklogs.lsm
Original-site:  
Platform:      
Copying-policy: GPL
End

--


 
 
 

1. Clean way to remove /var/adm/messages and /var/adm/syslog

Hi!
What's the proper way to remove the files (in subj)? Kill syslogd,
remove them and start it over again?

Thanks

--
++++++++++++ http://sunsite.oit.unc.edu/sergei/Me/Serge.html ++++++++++

+Department of Physics & Astronomy, UNC-CH, Chapel Hill, NC 27599, USA+
++++++++++++++++++ !! 8 bit (Cyrillic) mail accepted !!++++++++++++++++

2. named does not log correct timestamps

3. INIT: Cannot create /var/adm/utmp or /var/adm/utmpx

4. LILO Error on WD HD

5. what is /var/adm/lastlog and /var/adm/wtmp ?

6. configuration of standalone non-networked Solaris systems

7. INIT: Cannot create /var/adm/utmp or /var/adm/utmpx

8. dip failing on connect?

9. Cannot create /var/adm/utpm or /var/adm/utmpx

10. Help with /var/adm/wtmp and /var/adm/wtmpx

11. unable to write to /var/adm/utmp and /var/adm/utmpx

12. Cannot create /var/adm/utmp or /var/adm/utmpx

13. Ram disk for /var/adm/messages & syslog