Forum Discussion
How to query W3CIISLog
armin1961, I am assuming you enabled IIS Logs collection in the Log Analytics workspace (Advanced Settings > Data > IIS Logs).
1. Have you checked if the Log Analytics agent is running healthy in the target machine? Is it sending hearbeats? Run this query to know if your machine has been heartbeating:
Many thanks for your quick response.
Going piece-by-piece:
...enabled IIS Logs collection in the Log Analytics workspace (Advanced Settings > Data > IIS Logs).
Yes, I have set up a Workspace and checked: Data > IISLogs > "Collect https://www.mms.microsoft.com/Redirect?outgoingURL=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D841477".
The query...
... returns NO RESULTS FOUND.
Have you enabled logging in the IIS Web Sites...
I've enabled IIS logging by setting:
App Service
Monitoring > App Service logs: Web server logging - File System
(pls. see the pic below)
Yes, the site gets hits.
https://exitadviser.com
thank you for your assistance,
Armin
- armin1961Nov 28, 2019Copper Contributor
P.S.
I've also set "Diagnostic settings" to send the stuff to Log Analytics:
- hspintoNov 28, 2019
Microsoft
armin1961, the W3CIISLog table holds IIS Logs collected by the Log Analytics agent running in a machine. That was my initial assumption.
I see you are forwarding Azure App Service HTTP logs to Log Analytics, but these logs are stored in another table. Can you please check if this query returns results?
AppServiceHTTPLogs| limit 50