IIS + ASP.NET:在哪里可以查看服务器本身的日志?具体限制事件

发布于 2025-01-05 01:31:51 字数 350 浏览 0 评论 0原文

我花了 2 天的时间来找出我的服务停止响应的原因。问题最终被限制。但我挖掘的日志都没有提到它。

我可以查看哪些 IIS/ASP.NET 日志来弄清楚这一点?

以下是我检查过的地方:

  1. IIS 请求日志 (%SystemDrive%\inetpub\logs\LogFiles)
  2. “Microsoft/Windows/Application Server-Applications”系统日志:调试、分析
  3. “应用程序”和“系统”系统日志
  4. System.ServiceModel .MessageLogging 和 System.ServiceModel 日志源

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

活雷疯 2025-01-12 01:31:51

如果您安装 Windows Server AppFabric,它应该在仪表板上告诉您

在此处输入图像描述

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

enter image description here

江南月 2025-01-12 01:31:51

IIS 和 WAS 日志发送到系统事件日志,使用以下过滤器查询来获取 IIS/WAS 相关事件:

<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>

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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文