<p>I've got an Apache server that has one access log file that is topping 600MB.  This makes it really hard to search the file or parse it.<br>
What software or modules for Apache are available that will make a daily copy of my access file to make it more manageable?</p>

[{'answer_id': 44053, 'author': 'serg10', 'author_id': 1853, 'author_profile': 'https://Stackoverflow.com/users/1853', 'pm_score': 7, 'selected': True, 'text': '<p>Have you looked at <a href="https://linux.die.net/man/8/logrotate" rel="noreferrer">logrotate</a> - this is probably the simplest, most widely available and well understood method of achieving this.  It is highly configurable and will probably do 90% of what you need.</p>\n'}, {'answer_id': 44067, 'author': 'Eric Hogue', 'author_id': 4137, 'author_profile': 'https://Stackoverflow.com/users/4137', 'pm_score': 3, 'selected': False, 'text': "<h1>logrotate</h1>\n<p><code>logrotate</code> is probably the best solution. Use the file <code>/etc/logrotate.conf</code> to change the settings for all your logs. You van change <code>weekly</code> to <code>daily</code> so the logs are rotated every day. Also, you might want to add <code>compress</code> so the archives are compressed. If you don't care about the old logs, you can set rotate <code>rotate 4</code> to something lower.</p>\n"}, {'answer_id': 44096, 'author': 'Brian', 'author_id': 683, 'author_profile': 'https://Stackoverflow.com/users/683', 'pm_score': 5, 'selected': False, 'text': '<p>I\'m a big fan of <a href="https://github.com/fordmason/cronolog" rel="nofollow noreferrer">Cronolog</a>.  Just install and pipe your logs through it.  For daily log rotation, something like this would work:</p>\n\n<pre><code>ErrorLog  "|/usr/bin/cronolog /path/to/logs/%Y-%m-%d/error.log"\nCustomLog "|/usr/bin/cronolog /path/to/logs/%Y-%m-%d/access.log" combined\n</code></pre>\n\n<p>Pretty handy, and once installed, easier (in my experience) than logrotate.</p>\n'}, {'answer_id': 355725, 'author': 'alimack', 'author_id': 39447, 'author_profile': 'https://Stackoverflow.com/users/39447', 'pm_score': 4, 'selected': False, 'text': '<p>The actual command for Windows, which is quite difficult to find online is:</p>\n\n<pre><code>CustomLog \'|" "*Apache-Path/bin/rotatelogs.exe" \n    "**Apache-Path*/logs/backup/internet_access_%d-%m-%y.log" 86400\' combined\n</code></pre>\n\n<p>Where the "internet_access" bit is the name you choose for your files, the 86400 is the number of seconds in one day.  You need to change the Apache-Path to the relevant directory you\'ve installed Apache to.</p>\n'}, {'answer_id': 3404167, 'author': 'fabien', 'author_id': 410573, 'author_profile': 'https://Stackoverflow.com/users/410573', 'pm_score': 1, 'selected': False, 'text': '<p>rotatelog.exe or cronolog.exe on windows os. They are used in pipe command in http.conf\nMod_log_rotate additional module for apache ONLY for access log rotation\nLogrotate ONLY for unix os.</p>\n'}, {'answer_id': 4290920, 'author': 'Jake Scott', 'author_id': 522129, 'author_profile': 'https://Stackoverflow.com/users/522129', 'pm_score': 0, 'selected': False, 'text': '<p>I have a module that does this for you without the need for external pipes etc :</p>\n\n<p><a href="http://www.poptart.org/bin/view/Poptart/ModAutorotate" rel="nofollow">http://www.poptart.org/bin/view/Poptart/ModAutorotate</a></p>\n\n<p>I\'ve tried to add it to the Apache modules collection but that seems to have been broken for a while now.</p>\n'}, {'answer_id': 6419036, 'author': 'Bipin', 'author_id': 807570, 'author_profile': 'https://Stackoverflow.com/users/807570', 'pm_score': 2, 'selected': False, 'text': '<p>CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common</p>\n\n<p>This configuration will rotate the logfile whenever it reaches a size of 5 megabytes.</p>\n\n<pre><code>ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M" \n</code></pre>\n\n<p>This Would Be Best Way to Redirect Apache logs. No need to compile mod with httpd.</p>\n'}]
['https://Stackoverflow.com/questions/44048', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2863/']