Link to home
Start Free TrialLog in
Avatar of kcmurphy1
kcmurphy1

asked on

IIS6 Log Files Not Rolling

Hi - We're having an issue with IIS6 web logs. I'm not precisely sure how it started happening but it's in the last month or so. For some reason, IIS6 log files are not properly rolling. They just get bigger and bigger each day. If I go in and change from daily to hourly or turn local time on or off, it will create a new log file at that point and then just keep filling that one up.

Any ideas? :)
SOLUTION
Avatar of Sam Panwar
Sam Panwar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kcmurphy1
kcmurphy1

ASKER

W3c Extended Log File Format, the path had access for administrators and system, nothing else... we've been able to write to it before for over a year now, but we were using it by "when file size reaches 50MB" which wasn't the best setting for managing our reporting. I added iusr for the moment, I'll see if it rolls at the next hour mark.

I've tried it with localtime for rollover enabled and disabled both, neither seems to work.
Giving iusr access did not fix the issue. The files are writing there, they're just not closing off one file and opening a new one properly.
I just looked in the metabase... I'm wondering if LogFileTruncateSize might not be the problem.. we changed to do it periodically but the truncatesize remains in the metabase. Here's the metabase entry for one of the sites in question:


<IIsWebServer	Location ="/LM/W3SVC/619796104"
		AuthFlags="0"
		LogExtFileFlags="LogExtFileDate | LogExtFileHost | LogExtFileTime | LogExtFileClientIp | LogExtFileUserName | LogExtFileSiteName | LogExtFileComputerName | LogExtFileServerIp | LogExtFileMethod | LogExtFileUriStem | LogExtFileUriQuery | LogExtFileHttpStatus | LogExtFileWin32Status | LogExtFileBytesSent | LogExtFileBytesRecv | LogExtFileTimeTaken | LogExtFileServerPort | LogExtFileUserAgent | LogExtFileCookie | LogExtFileReferer | LogExtFileProtocolVersion | LogExtFileHttpSubStatus"
		LogFileDirectory="D:\written\logs\-------------------.com"
		LogFileLocaltimeRollover="TRUE"
		LogFilePeriod="4"
		LogFileTruncateSize="52428800"
		LogPluginClsid="{FF160663-DE82-11CF-BC0A-00AA006111E0}"
		SSLCertHash="-------------------"
		SSLStoreName="MY"
		SecureBindings="-------------------:443:"
		ServerAutoStart="TRUE"
		ServerBindings="1-------------------:80:
			-------------------:80:
			-------------------:80:"
		ServerComment="www.-------------------.com"
	>
</IIsWebServer>

Open in new window

Hmm.. the overall setting for IIS was set to 50 meg rollover still. I changed that to hourly as well, we'll see if that fixes it at 1. :)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial