Create a 32-bit application pool on a 64-bit OS (Windows 2019 or later).
Create a site and enable logging to be "Both log file and ETW event".
Browse the site.
Event 2308 from IIS-W3SVC-WP will be created for each request:
The loghttp module in the worker process with id '93692' could not obtain custom log data for '1' requests. The data field contains the error code.
This issue has been identified as a bug in Windows Server 2019 and newer releases. Please note that this only occurs with the 32 bit applications when ETW logging is enabled.
Turn off logging or log to file only (no ETW).
Switch to use a 64-bit Application Pool.
Use custom fields in logging. In IIS Manager, go to the logging module for the site, click “Select Fields…”. Select desirable standard fields and add any custom field (for example, Server Variable HTTP_METHOD).
Here is an example snippet in applicationHost.config: