Results 1 to 3 of 3

Thread: Keeping up2date with /var/logs

  1. #1
    Associate
    Join Date
    Feb 2003
    Posts
    39

    Keeping up2date with /var/logs



    Check it out, this is what my /var/log looks like


    Code:
     
    .
    
    ..
    
    boot.log
    
    boot.log.1
    
    boot.log.2
    
    boot.log.3
    
    boot.log.4
    
    cron
    
    cron.1
    
    cron.2
    
    cron.3
    
    cron.4
    
    dmesg
    
    gdm
    
    httpd
    
    ksyms.0
    
    ksyms.1
    
    ksyms.2
    
    ksyms.3
    
    ksyms.4
    
    ksyms.5
    
    ksyms.6
    
    lastlog
    
    maillog
    
    maillog.1
    
    maillog.2
    
    maillog.3
    
    
    maillog.4
    
    messages
    
    messages.1
    
    messages.2
    
    messages.3
    
    messages.4
    
    output
    
    pgsql
    
    rpmpkgs
    
    rpmpkgs.1
    
    rpmpkgs.2
    
    rpmpkgs.3
    
    rpmpkgs.4
    
    samba
    
    scrollkeeper.log
    
    secure
    
    secure.1
    
    secure.2
    
    secure.3
    
    secure.4
    
    snort
    
    spooler
    
    spooler.1
    
    spooler.2
    
    spooler.3
    
    spooler.4
    
    squid
    
    up2date
    
    up2date.1
    
    up2date.2
    
    up2date.3
    
    up2date.4
    
    vbox
    
    wtmp
    
    wtmp.1
    
    XFree86.0.log


    Is there anyway to keep my logs up2date, so they don't continue to build up?


  2. #2

    Re:Keeping up2date with /var/logs

    Might be looking for "logrotate".

    logrotate is designed to ease administration of systems that generate
    large numbers of log files. It allows automatic rotation, compression,
    removal, and mailing of log files. Each log file may be handled daily,
    weekly, monthly, or when it grows too large.

    Normally, logrotate is run as a daily cron job. It will not modify a
    log multiple times in one day unless the criterium for that log is
    based on the log’s size and logrotate is being run multiple times each
    day...

    man logrotate to read more.

  3. #3
    Associate
    Join Date
    Feb 2003
    Posts
    39

    Re:Keeping up2date with /var/logs

    [quote author=RedHat link=board=1;threadid=6600;start=0#62059 date=1047789084]
    Might be looking for "logrotate".

    logrotate is designed to ease administration of systems that generate
    large numbers of log files. It allows automatic rotation, compression,
    removal, and mailing of log files. Each log file may be handled daily,
    weekly, monthly, or when it grows too large.

    Normally, logrotate is run as a daily cron job. It will not modify a
    log multiple times in one day unless the criterium for that log is
    based on the log’s size and logrotate is being run multiple times each
    day...

    man logrotate to read more.

    [/quote]

    Kewl...thanks for the info. that helped and a learned something.

    thanks!


Similar Threads

  1. Keeping what is yours
    By Fatal Error in forum General Chat
    Replies: 1
    Last Post: 02-15-2005, 04:00 PM
  2. keeping resolutions in Win2k/XP
    By LinuxLuke in forum Windows - General Topics
    Replies: 2
    Last Post: 03-04-2003, 06:24 AM
  3. You finns keeping warm ?
    By in forum General Chat
    Replies: 2
    Last Post: 11-30-2002, 11:44 PM
  4. Keeping configs up to date
    By SwampDonkey in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 11-24-2002, 09:29 PM
  5. Keeping font size in Mozilla
    By trickster in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 10-09-2002, 02:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •