ASP.NET 事件日志警告中的 Occurence 字段是什么?

发布于 2024-11-09 04:00:44 字数 940 浏览 4 评论 0原文

典型的事件日志消息如下所示。在那里您可以找到非常有趣的字段“事件发生”和“事件序列”。它们分别是什么意思?

在我的情况下,事件发生 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 技术交流群。

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

发布评论

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

评论(3

时光沙漏 2024-11-16 04:00:44

事件发生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 Monitoring

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

锦上情书 2024-11-16 04:00:44

此日志输出只是 ASP.NET WebErrorEvent 的输出。 EventOccourance,根据文档

表示事件发生次数的计数器。

也许也很重要:

此属性是只读的,并且会因调用内部方法而递增。

This log output is just the output of an ASP.NET WebErrorEvent. EventOccourance, according to the documentation:

A counter that represents the number of times the event has occurred.

Perhaps also important:

This property is read-only and is incremented as a result of calls to an internal method.

つ可否回来 2024-11-16 04:00:44

以下是 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 :)

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