I have a strange behaviour going on with our IIS logging and I was
wondering if someone might be able to explain. My understanding with
IIS logging is that the files are supposed to be stored in one of the
W3SVC folders (w3svc1, w3svc2 or w3svc3) with the actual name of the
log as "ex%YY%MM%DD.log." However, the logfile is created under a
sub-directory. For example, instead of the log being in
W3SVC1\ex061024.log, it's in W3SVC\w3svc45678617\ex061024.log. Can
anyone explain why it's dumping the log in a sub-directory of W3SVC? I
checked the IIS setting and the logfiles are supposed to be saved in a
different folder altogether. Basically, I've got two problems. First,
the files are not being placed in the proper folder(s). Second, in the
folders where the logfiles are kept, it randomly creates a
sub-directory.

I'm installing awstats but the way IIS is behaving makes it impossible
to tell awstats where to find the log files. Can anyone help? Thanks!

Re: Setting IIS logfile name/location by David

David
Tue Oct 24 18:16:02 CDT 2006

What directory name are you setting in the IIS Manager UI for Logging
Directory of that website?

I believe you have:
%systemroot%\System32\LogFiles\W3SVC

to be the log directory of the website with ID=45678617.

The correct configuration is to configure the log directory of all your
websites to be:
%systemroot%\System32\LogFiles

And everything else will work as you want. This is the default
configuration, so your current problems are likely caused by custom
misconfiguration.


//David
http://w3-4u.blogspot.com
//




spinel wrote:
> I have a strange behaviour going on with our IIS logging and I was
> wondering if someone might be able to explain. My understanding with
> IIS logging is that the files are supposed to be stored in one of the
> W3SVC folders (w3svc1, w3svc2 or w3svc3) with the actual name of the
> log as "ex%YY%MM%DD.log." However, the logfile is created under a
> sub-directory. For example, instead of the log being in
> W3SVC1\ex061024.log, it's in W3SVC\w3svc45678617\ex061024.log. Can
> anyone explain why it's dumping the log in a sub-directory of W3SVC? I
> checked the IIS setting and the logfiles are supposed to be saved in a
> different folder altogether. Basically, I've got two problems. First,
> the files are not being placed in the proper folder(s). Second, in the
> folders where the logfiles are kept, it randomly creates a
> sub-directory.
>
> I'm installing awstats but the way IIS is behaving makes it impossible
> to tell awstats where to find the log files. Can anyone help? Thanks!