Current time: 05-06-2024, 01:05 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] logrotate does not compress rotated file
Author Message
Wut Offline
Junior Member
*

Posts: 18
Joined: Aug 2007
Reputation: 0
Post: #1
[SOLVED] logrotate does not compress rotated file
I use ispcp1.0.0 on Debian Lenny 32bit

I run it on VPS so I get only 10GB space and I have some trouble with logs file size. So I have to edit /etc/logrotate.conf to rotate log everyday and compress it.

PHP Code:
# see "man logrotate" for details
# rotate log files weekly
daily

# keep 4 weeks worth of backlogs
rotate 90

# 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 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here 

After I edit it, log was rotated but not compress. So my HDD problem still effect anyway T_T.

Any suggestion will be appreciated,
(This post was last modified: 04-03-2009 05:19 AM by BeNe.)
03-29-2009 02:42 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[SOLVED] logrotate does not compress rotated file - Wut - 03-29-2009 02:42 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)