logging iisreset

2019-08-23 22:48发布

Is there a log that lets you know when the web site was stopped and started in iis?

I'm looking for a way to see when the web site was stopped and started.

Does anyone know if there is a way to see?

标签: iis iis-6
2条回答
叼着烟拽天下
2楼-- · 2019-08-23 23:45

Your best bet is to put something in your global.asax file in Application_start.

You can add something to a log file, or shoot yourself an email whenever this fires.

查看更多
我命由我不由天
3楼-- · 2019-08-23 23:47

Look in Windows Event Viewer > Windows Logs > System.

Filter events with Source = IIS-IISReset.

An example event message is:

IIS stop command received from user NT AUTHORITY\SYSTEM. The logged data is the status code.

查看更多
登录 后发表回答