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.
Enable/disable Advanced Logging per website
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:
Go to IIS Manager and click server name
Double click Advanced Logging
Double click the log definition (%COMPUTERNAME%-Server)