IIS 7.5 not logging

iis-7.5windows-server-2008-r2

I have a strange issue with a Windows Server 2008 R2 running IIS: HTTP logging stopped a few months ago (I just found out), and I cannot seem to get it to start logging again.

I have both HTTP Logging and Logging Tools installed (under Web Server/ Health and Diagnostics) and under IIS Manager > Logging, it is enabled (One log per: Site, Format: W3C, Directory: "%SystemDrive%\inetpub\logs\LogFiles", etc. – all default stuff).

Yet under C:\inetpub\logs\LogFiles\W3SVC1 / W3SVC2avalanche, etc., all files are months old.

I have also restarted the server, to no avail.

I tried to disable logging and then enable it again (in IIS Manager), but that did not help.

Lastly, I tried to enable via command-line (even though already enabled):

C:\Windows\System32\inetsrv>appcmd set config /section:httpLogging /dontLog:False /selectiveLogging:LogAll

Applied configuration changes to section "system.webServer/httpLogging" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

What I am missing??

Best Answer

I know this is an old post (I'm a necromancer)! I found my way here in desperation via Google, and I believe that, at least on our server, the problem was that the "W3C Logging Service" in services.msc was stopped. Upon restarting it, the service worked fine (provided the proper folder permissions were in place, as described above). It appears that the problem our GMT -08:00 server ran into was this one:

https://support.microsoft.com/en-us/help/2982169/w3c-logging-service-crashes-in-iis-8.5-on-a-server-in-windows-8.1-or-windows-server-2012-r2

There is an update able to be downloaded within. Hope this helps someone.