Asheh Posted May 2, 2007 Share Posted May 2, 2007 hi, we are hav ing a problem where our log files are > 4gb in size, so the analyzers we use will not load them. is there any way to split them up (the curernt ones we have) into quater months or less? Ive been looking around but cannot find a solution. Regards Ash. Link to comment https://forums.phpfreaks.com/topic/49642-very-large-apache-log-files/ Share on other sites More sharing options...
steviewdr Posted May 2, 2007 Share Posted May 2, 2007 Apache and logrotate can be instructed to rotate apache log files when they reach a certain size. Typically apache log files are rotated every week regardless of what size they become. The config for logrotate and apache is in: /etc/logrotate.d/ on linux -steve Link to comment https://forums.phpfreaks.com/topic/49642-very-large-apache-log-files/#findComment-243437 Share on other sites More sharing options...
eddedwards Posted May 5, 2007 Share Posted May 5, 2007 u could use a bash/sh script + cronjob for it too. check out this: Example A-26 on this website might be usefull to you. http://tldp.org/LDP/abs/html/contributed-scripts.html#ARCHIVWEBLOGS Link to comment https://forums.phpfreaks.com/topic/49642-very-large-apache-log-files/#findComment-246048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.