Forum Moderators: phranque
Can Access logs get so large that they not only take up space, but also slow the server?
I thought it might because in php fopen a large file will result in a slower script.
Well, thank you anyone for anyone's input. Just curious.
Here is an example:
SetEnvIf Request_URI "(\.gif¦\.jpg¦\.png¦\.css¦\.js)$" no_log
SetEnvIf Request_URI "/ajax/" no_log
SetEnvIf Request_URI "/jquery/" no_log
CustomLog /var/log/mysite_access_log "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v \"%{x-forwarded-for}i\"\"%{CLIENT-IP}i\"" env=!no_log
My server is a WAMP (more like a WIMP ... miss Linux), I was going to create a bat file that would read the logs every 24 hours and turn them into sql to be injected into my mysql db.
Either that or just delete them after a week. They tend to climb up there in size really fast due to visits and I think the ajax requests.
Any comments?