Re: Controlling kernel log size

From: Andreas Janssen (andreas.janssen_at_bigfoot.com)
Date: 07/30/04

  • Next message: cam: "sarge: kernel & gcc version confusion"
    To: debian-user@lists.debian.org
    Date: Fri, 30 Jul 2004 15:02:02 +0200
    
    

    Hello

    Bruno Diniz (<bruno.diniz@gmail.com>) wrote:

    > looking into my /var/log, I noticed that kern.log and syslog were
    > taking a lot of space. After inspecting this files, I figured out that
    > they were keeping 4 weeks of entries. I don't need that much, so how
    > can I reduce the number of weeks kept in this logs? I tried to change
    > the /etc/logrotate.conf file (rotate 4 -> rotate 2) with no success.

    Actually logrotate is set up to rotate the logs weekly (at least
    kern.log, on my system syslog seems to be rotated daily), but keep the
    old compressed log files for four weeks. It is not quite clear to me if
    this is what you meant, because to me it sounds as if the syslog file
    in use has entries four weeks old. This should not happen. Maybe the
    logrotate cron job is not run because your system is not up 24/7, and
    anacron is not installed.

    best regards
            Andreas Janssen

    -- 
    Andreas Janssen <andreas.janssen@bigfoot.com>
    PGP-Key-ID: 0xDC801674 ICQ #17079270
    Registered Linux User #267976
    http://www.andreas-janssen.de/debian-tipps.html
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: cam: "sarge: kernel & gcc version confusion"

    Relevant Pages

    • Re: Odd semi-crash or hang
      ... More details after reboot. ... Cannot find anything specific in logs, ... are some odd entries earlier this morning, ... Trying to reach it through remote desktop, ...
      (microsoft.public.windows.server.sbs)
    • Re: Determine When a User Logged In
      ... The Run entries in HKLM are executed for every user that logs in, ... Special privileges assigned to new logon: ...
      (microsoft.public.vb.general.discussion)
    • Re: Help with a shell script
      ... > I have about a years worth of text logs that have the following format: ... > I need to change the entries in the file to be semicolon separated. ... So your sed command file will look something like this, ...
      (comp.unix.shell)
    • Re: my log files-is there any problem
      ... >I am little concerned with these 2 means are these the normal entries ... >root 313 times isn't it too much. ... For the sendmail logs, nothing much to worry as a relaying attempt was ...
      (Fedora)
    • 2.6.16.1 breaks pipes and amanda
      ... Amanda has failed on several, ... the dbg logs and in the email the dear girl sends me. ... There are no entries in the /var/log/messages file during the time of ...
      (Linux-Kernel)