![]() |
[SOLVED] logrotate does not compress rotated file - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: [SOLVED] logrotate does not compress rotated file (/thread-6238.html) |
[SOLVED] logrotate does not compress rotated file - Wut - 03-29-2009 02:42 PM 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 After I edit it, log was rotated but not compress. So my HDD problem still effect anyway T_T. Any suggestion will be appreciated, RE: logrotate does not compress rotated file - BeNe - 03-30-2009 03:56 PM But in the logrotate config that comes with ispCP we compress the Logfiles --> /etc/logrotate.d/ispcp/ Code: /var/log/apache2/users/*.log { Why did you set 90 instead of 4 Weeks ? Geez BeNe RE: logrotate does not compress rotated file - Wut - 04-03-2009 01:52 AM Sorry, look like it's my misunderstanding. I change it in /etc/logrotate.d/ispcp and /etc/logrotate.d/apache2 and it's work. RE: logrotate does not compress rotated file - BeNe - 04-03-2009 05:18 AM Fine! No Problem. Greez BeNe RE: logrotate does not compress rotated file - vetch101 - 07-10-2009 08:02 PM (04-03-2009 05:18 AM)BeNe Wrote: Fine! No Problem. Hi all, I've just run out of space on my 10GB VPS and I noticed that all my log files are enormous... (e.g. mail.log and mail.log.prev are 575MB) I don't seem to have any rotations going on at all... I installed initially from an RC... 2 or 3, I think, and I'm currently running on RC6. Did the logrotate setup only start working after RC6? How would I check to see for definite that it's not rotating? Many thanks, Jx (07-10-2009 08:02 PM)vetch101 Wrote:(04-03-2009 05:18 AM)BeNe Wrote: Fine! No Problem. Ok - I've just checked... error.log in apache seems to be rotating and gzipping, but mail.* certainly isn't... Any recommendations for best practice on that? Cheers, Jx RE: [SOLVED] logrotate does not compress rotated file - vetch101 - 07-10-2009 10:48 PM OK - so I've looked at it... In the /etc/logrotate.d/ folder, there is a sendmail file which is all commented out... And a syslog.bastille file which is empty... Currently, my mail.info, mail.log and mail.log.prov are all around 5-600MB, as is my syslog file, and auth.log is 120MB. The log rotation for apache and the other services seem to be working... Whilst I'm using postfix (clearly), should I be uncommenting the sendmail log rotation file? Also, is there a good syslog logrotation file that I could use? Finally, will it screw things up with these massive log files when I run the logrotation for the first time? Many thanks, Jx |