disabling access.log in apache installation in windows

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
title says it all. have run through my httpd.conf file, changed logging level but that only changes the error.log logging, not the access.log. can i disable access.log completely? just noticed my access.log was at like 45mb after just 3 days of me setting up my pc on apache, and don't want that to get out of control!

alternatively, any way i can limit the size? (may be more secure to do this method)

thanks guy, and sorry for the offtopic post.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Setup a script to move the log when it reaches a certain size or at a certain time. I think my OS automatically moves it every night.

45MB is nothing. :p
 

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
n0cmonkey-- thats the thing, i can't move/ edit the log file as it's locked by apache. so unless i turn off apache, move the file, and turn apache back on every so often that's just annoying.

so other way? maybe have rolling log files like windows logging, so it has a ceiling to the size it can hit before deleting the oldest records?

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: zimu
n0cmonkey-- thats the thing, i can't move/ edit the log file as it's locked by apache. so unless i turn off apache, move the file, and turn apache back on every so often that's just annoying.

so other way? maybe have rolling log files like windows logging, so it has a ceiling to the size it can hit before deleting the oldest records?

newsyslog(8) was setup for just this type of thing.

This is supposed to be a n updated newsyslog(8) program.

This one however is written is perl.

Your OS should probably already have a copy of it.
 

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
eek, i'm intimidated just lookign at that stuff... i'm sorta a n00b when it coems to administering my own apache, that's the easiest thing? (note i also am running windows, newsyslog works for windows? it says "linux and linux-like OSs)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: zimu
eek, i'm intimidated just lookign at that stuff... i'm sorta a n00b when it coems to administering my own apache, that's the easiest thing? (note i also am running windows, newsyslog works for windows? it says "linux and linux-like OSs)

Oh, I don't do Windows. The perl version might work, not sure.

I'd probably buy a new hard drive and get something bigger than a couple of gigs so it could easily handle a few megabytes of log files, and switch over the logs once a week or so. It shouldn't be tough to create a batch file to do it.

Either that, or I'd switch to a real platform. :D