AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  syslog archived file management

    Posted Tue February 24, 2009 09:22 AM

    Originally posted by: new2aix


    We have syslog.conf set up so that it rotates files after one day and archives them.
    we now have over 500 archived files, can these files just be deleted (leaving 14 days or so) without affecting the way the program runs?

    Here is the line in use in the file /etc/syslog.conf
    auth.debug /tmp/syslog.out rotate time 1d archive /tmp/syslogfiles


  • 2.  Re: syslog archived file management

    Posted Tue February 24, 2009 09:35 AM

    Originally posted by: Holgervk


    yes, you can delete the old logfiles without affecting syslog in any way
    all that syslog needs is the current file


  • 3.  Re: syslog archived file management

    Posted Tue February 24, 2009 09:40 AM

    Originally posted by: new2aix


    Thankyou for your speedy response..


  • 4.  Re: syslog archived file management

    Posted Tue February 24, 2009 09:55 AM

    Originally posted by: new2aix


    once I have sorted out all of the old files, is there a way within syslog to limit the number of files we have archived, or should I add the archive location to our daily cleanup job so that it removes files older than 14 days?


  • 5.  Re: syslog archived file management

    Posted Tue February 24, 2009 10:01 AM

    Originally posted by: Holgervk


    you can easily limit syslog to only keep f.e. 20 files
    just add
    files 20
    in the corresponding line in /etc/syslog.conf