ASP.NET 事件日志警告中的 Occurence 字段是什么?
典型的事件日志消息如下所示。在那里您可以找到非常有趣的字段“事件发生”和“事件序列”。它们分别是什么意思?
在我的情况下,事件发生 5 发生异常,但我只能在 IIS 日志中找到一个请求,其状态代码为 500,其 URL 与事件日志消息中的请求信息完全相同。
那么,这个字段的值是如何计算的呢?我该如何使用它?
Event code: 3001
Event message: The request has been aborted.
Event time: 5/23/2011 11:35:36 PM
Event time (UTC): 5/24/2011 3:35:36 AM
Event ID: 9e8d8159c90349de8f7a6132ed871992
Event sequence: 65374
Event occurrence: 5
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/14/ROOT-1-12950413213497090109
Trust level: Full
Application Virtual Path: /
Application Path: E:\wwwsites\MySupaSite\
Machine name: WEB02
Process information:
Process ID: 12228
Process name: w3wp.exe
Account name: IIS APPPOOL\MySupaSite
Exception information:
Exception type: HttpException
Exception message: Request timed out.
Request information:…
Typical Event Log message looks like below. There you can find very interesting fields „Event occurrence“ and „Event sequence“. What they are means?
In my situation I have exception with event occurence 5, but I can just find only one request in IIS log with 500 status code with URL exactly like in request information in the event log message.
So, how the value of this field calculates? How can I use it?
Event code: 3001
Event message: The request has been aborted.
Event time: 5/23/2011 11:35:36 PM
Event time (UTC): 5/24/2011 3:35:36 AM
Event ID: 9e8d8159c90349de8f7a6132ed871992
Event sequence: 65374
Event occurrence: 5
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/14/ROOT-1-12950413213497090109
Trust level: Full
Application Virtual Path: /
Application Path: E:\wwwsites\MySupaSite\
Machine name: WEB02
Process information:
Process ID: 12228
Process name: w3wp.exe
Account name: IIS APPPOOL\MySupaSite
Exception information:
Exception type: HttpException
Exception message: Request timed out.
Request information:…
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事件发生
是 ASP 提供的字段之一.NET 2.0 运行状况监控ASP.NET 2.0 运行状况监控会累积事件,并仅在达到特定事件的(可配置)发生次数时将其写入事件日志。
另请参阅:ASP 中的 部分.NET 2.0 运行状况监控 - 步骤 3. 配置运行状况监控
更新:
有关 ASP.NET 运行状况监控的常见问题解答(ASP.NET 论坛)(我自己在这里学到了一点*g*)-
这让我
MSDN:WebBaseEvent 成员
您可以在其中找到其所有属性的确切数据类型
Event Occurence
is one of the fields that are provided by ASP.NET 2.0 Health MonitoringASP.NET 2.0 Health monitoring accumulates events and writes them to the Event Log only if a (configurable) number of occurrences of a specific event is reached.
See also: section <profiles> in ASP.NET 2.0 Health Monitoring - Step 3. Configure Health Monitoring
Update:
Great FAQ on ASP.NET Health Monitoring (ASP.NET Forum) (Just learned a bit here myself *g*) -
which lead me to
MSDN: WebBaseEvent Members
where you can find the exact data types of all its properties
此日志输出只是 ASP.NET WebErrorEvent 的输出。 EventOccourance,根据文档:
也许也很重要:
This log output is just the output of an ASP.NET WebErrorEvent. EventOccourance, according to the documentation:
Perhaps also important:
以下是 CISCO 事件记录的说明 — http://www.cisco.com/en/US/docs/security/vpn3000/vpn3000_47/administration/guide/filevlog.pdf
我假设您的“事件顺序”与他们的相同。 “事件发生”可能等于“事件重复”。所有这些事件日志在某些时候都有相似之处,所以我希望我的猜测是正确的:)
Here is a description of event records for CISCO — http://www.cisco.com/en/US/docs/security/vpn3000/vpn3000_47/administration/guide/filevlog.pdf
I assume that your "event sequence" is the same as theirs. "Event occurrence" probably equal to "event repeat". All this event logs have similarities at some point, so I hope my guess is right :)