logrotate question

From: Bob Alexander (bob_at_ngi.it)
Date: 02/06/05

  • Next message: Alan Chandler: "Re: Don't understand recording from microphone."
    Date: Sun, 06 Feb 2005 19:25:25 +0100
    To: Debian Linux Distro Users Discussion <debian-user@lists.debian.org>
    
    

    In my Debian sid /var/log directory there are 3 main files that are
    never rotated:

    syslog
    messages
    kern.log

    Is this my fault, am I missing something ?

    I would like all of them having only the current day payload and then
    zipping older sets for a week and then delete forever.

    Here follows my /etc/logrotate.conf (which does not handle any of the
    above three) and the /etc/logrotate.d does not have any entries for the
    above files.

    Should I file a bug ?

    TIA,
    Bob

    # see "man logrotate" for details
    daily
    rotate 7

    # create new (empty) log files after rotating old ones
    create

    # uncomment this if you want your log files compressed
    compress

    # packages drop log rotation information into this directory
    include /etc/logrotate.d

    # no packages own wtmp, or btmp -- we'll rotate them here
    /var/log/wtmp {
         missingok
         monthly
         create 0664 root utmp
         rotate 1
    }

    /var/log/btmp {
         missingok
         monthly
         create 0664 root utmp
         rotate 1
    }

    # system-specific logs may be configured here

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Alan Chandler: "Re: Don't understand recording from microphone."

    Relevant Pages

    • Re: wtmp,store.log and access.log
      ... create 0664 root utmp ...
      (comp.unix.aix)
    • Re: wtmp,store.log and access.log
      ... logrotate seems not to be part of my aix system. ... create 0664 root utmp ...
      (comp.unix.aix)
    • Re: running newsyslog fiveminly
      ... there is a machine which writes two kinds of log files through syslogd: ... For first kind of logs we have to run newsyslog once every 5 minutes using cron: ... Why do you need to rotate logs every 5 minutes? ...
      (freebsd-stable)
    • Re: Logrotate appends extra numbers to logfiles
      ... extra numbers to logfiles on a system I've been accessing. ... The sysadmin who set this up is a Windows admin, ... # rotate log files daily - added by QB ...
      (comp.os.linux.setup)
    • Logrotate appends extra numbers to logfiles
      ... extra numbers to logfiles on a system I've been accessing. ... admin access to change anything but I really wanted to get it figured ... # rotate log files daily - added by QB ...
      (comp.os.linux.setup)