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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.