Over 40GB log files how to reduce logging? - 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: Over 40GB log files how to reduce logging? (/thread-15581.html) |
Over 40GB log files how to reduce logging? - Outbreaker - 11-22-2011 12:50 AM HI Yesterday i noticed that i had only 10 GB of free hard disk space. After searching i found out that the folder "/var/log/apache2" has log files over 3GB's how can i fix this so only X days are logged? RE: Over 40GB log files how to reduce logging? - ephigenie - 11-24-2011 08:33 PM Take a look at the logrotation scripts you find below /etc/logrotation/ .. you may need to change the path's there. Alternatively you can create a simple cronjob ala : find /var/log/apache2 -ctime +60 |xargs rm -f um alle Dateien älter als 60 Tage zu löschen. Das ist natürlich die Holzhammermethode. logrotation is besser RE: Over 40GB log files how to reduce logging? - Outbreaker - 12-01-2011 10:31 AM Ok did set in the /etc/logrotate.d/ispcp file under: /var/log/apache2/*.log { rotate 52 TO rotate 1 Hop this will fix it one year of log files is over kill. RE: Over 40GB log files how to reduce logging? - ephigenie - 12-02-2011 08:35 PM hehe very well ... one year is a bit too much. |