IIS + ASP.NET : where can I see logs for the serve

2019-09-04 18:10发布

I spent 2 days on figuring out why my service was stopping responding. Issue ended up being throttling. But none of the logs I dug through mentioned it.

What IIS/ASP.NET log can I look at to figure that out?

Here are the places I have checked:

  1. IIS requests log (%SystemDrive%\inetpub\logs\LogFiles)
  2. "Microsoft/Windows/Application Server-Applications" system logs: Debug, Analytic
  3. "Application" and "System" system logs
  4. System.ServiceModel.MessageLogging and System.ServiceModel log sources

3条回答
Juvenile、少年°
2楼-- · 2019-09-04 18:32

IIS and WAS logs are sent to System event log, use following filter query to get IIS/WAS relevant events:

<QueryList>
  <Query Id="0" Path="System">
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-APPHOSTSVC"']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-FTP']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-IisMetabaseAudit']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-IISReset']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-W3SVC']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-W3SVC-PerfCounters']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-W3SVC-WP']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-IIS-WMSVC"']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-WAS']]]</Select>
    <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-WAS-ListenerAdapter']]]</Select>
  </Query>
</QueryList>
查看更多
Deceive 欺骗
3楼-- · 2019-09-04 18:57

If you install Windows Server AppFabric it should tell you on the dashboard

enter image description here

查看更多
登录 后发表回答