Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, i have a Debian server which was properly rotating system logs on weekly basis up until 13-11-2010, post which it has suddenly stopped doing it on weekly basis and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    9

    logrotate issues


    Hi,

    i have a Debian server which was properly rotating system logs on weekly basis up until 13-11-2010, post which it has suddenly stopped doing it on weekly basis and is appending logs to the same file. any clue why it might be happening suddenly?
    my problem is that logs are not getting rotated.
    ---------------------------------------------------------------------------------------------------------------------------
    Debian 2.6.18.dfsg.1-24 ---------- Debian 4.1.1-21 ---------------------- Linux version 2.6.18-6-amd64
    ---------------------------------------------------------------------------------------------------------------------------
    cat /etc/logrotate.conf

    # see "man logrotate" for details
    # rotate log files weekly
    weekly

    # keep 4 weeks worth of backlogs
    rotate 4

    # 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

    ---------------------------------------------------------------------------------------------------------------------------
    here is what i see ---

    -rw-r----- 1 root adm 3.6M 2011-03-11 11:52 messages
    -rw-r----- 1 root adm 150K 2010-11-07 06:39 messages.0
    -rw-r----- 1 root adm 8.4K 2010-10-31 06:37 messages.1.gz
    -rw-r----- 1 root adm 14K 2010-10-24 06:36 messages.2.gz
    -rw-r----- 1 root adm 15K 2010-10-17 06:40 messages.3.gz
    -rw-r----- 1 root adm 42K 2010-04-25 06:46 messages.4.gz
    -rw-r----- 1 root adm 51K 2010-04-18 06:45 messages.5.gz
    -rw-r----- 1 root adm 60K 2010-04-11 06:19 messages.6.gz

  2. #2
    Just Joined!
    Join Date
    Feb 2011
    Posts
    9
    common guys please help !!!

Posting Permissions

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