Category: General

Add the following script to a cron job:

find /var/log/httpd/ -mtime +3 -exec rm {} ;

This should clear out any log files in /var/log/httpd older than 3 days.

[Linux]

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.