g1smd

msg:4013399 | 8:22 am on Oct 26, 2009 (gmt 0) |
I'd rotate the logs daily or weekly instead of monthly to keep the individual file sizes down.
|
miketheman

msg:4013400 | 8:26 am on Oct 26, 2009 (gmt 0) |
Is it possible to make apache store them in mysql?
|
Frank_Rizzo

msg:4013434 | 11:23 am on Oct 26, 2009 (gmt 0) |
Do you really need to log the ajax requests? You can set apache to not log specific locations as well as .js, .css files etc. 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
|
miketheman

msg:4013457 | 12:07 pm on Oct 26, 2009 (gmt 0) |
Ohh wow. i didn't know that. That will be really helpful! I'll be trying it out, later. Thank you Fran_Rizzo and g1smd for your suggestions and input.
|
miketheman

msg:4013458 | 12:10 pm on Oct 26, 2009 (gmt 0) |
For everyone who stubbles on this thread...i thought of a simple concept of adding logs into mysql. 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?
|
miketheman

msg:4013761 | 7:57 pm on Oct 26, 2009 (gmt 0) |
Hey guys, is there a way to disable the logs completely? I only use them when I'm testing codes. Would this be a bad idea?
|
|