Getting IIS application pool recycle events to be logged in the Windows Event Log

北战南征 提交于 2019-12-21 12:18:26

问题


I am trying to get IIS 7 application pool recycle, start, stop, etc. events to be logged to the Windows Event Log. I followed the steps outlined in this article but didn't have any success. I restarted the application pool and nothing was logged in the Event Log. (I checked both the "Application" and "System" logs.) But when I do an IIS reset that gets logged.


回答1:


For IIS 7, IIS Manager can be used to enable recycle events to be logged in the Windows Event Log:

  1. Open IIS Manager.
  2. Click Application Pools.
  3. Click the application pool of interest and click Advanced Settings....
  4. Under Recycling, expand Generate Recycle Event Log Entry.

The available recycle events that can be logged are:

  • Application Pool Configuration Changed
  • Isapi Reported Unhealthy
  • Manual Recycle
  • Private Memory Limit Exceeded
  • Regular Time Interval
  • Request Limit Exceeded
  • Specific Time
  • Virtual Memory Limit Exceeded



回答2:


This article made it clear why events were not registered in event log:

http://blogs.msdn.com/b/david.wang/archive/2006/02/28/why-iis6-application-pool-recycle-events-are-not-logged.aspx



来源:https://stackoverflow.com/questions/6756748/getting-iis-application-pool-recycle-events-to-be-logged-in-the-windows-event-lo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!