IIS 7, 7.5, and 8 used Advanced Logging feature as a customized logging option. IIS 8.5 introduced Enhanced Logging which is a built-in feature. If you still have a server that is using Advanced Logging, you may run into an issue with logging. In other words, no logs are created.
Firstly, check the Advanced Logging module in IIS and make sure that it is enabled.
After checking the module page, go to your applicationHost.config file. In my case, it was not logging anything because the
enabled="true" attribute was missing.
When you try to enable or disable Advanced Logging per website by following the this documentation, you may come across to the error below.
The request is not supported. (Exception from HRESULT: 0x80070032)
In order to get around this issue and configure Advanced Logging per site, you can use filters.
For example: Let’s say we don’t want logs for MigrationTest site. We can use the filter below to achieve it. Once you add this filter, It won’t create logs for that site anymore (If there is no log file in the folder, it will create a new one. However, it won’t log requests in this file)
In order to create a filter to disable logging for a site:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.