【发布时间】:2016-07-26 00:23:06
【问题描述】:
我们的事件查看器显示了两条我们希望从事件日志中省略的信息级消息:
- 当用户认证失败时(事件代码:4006 事件消息: 成员身份验证失败。)
- 何时形成 身份验证已过期,用户导航到默认值 页面(事件代码:4005 事件消息:表单身份验证失败 为请求。原因:提供的票已过期。)
研究如何排除这些类型的消息使我明白,如果我在 web.config 文件中包含以下内容,这些消息将不会显示。当我对此进行测试时,我发现确实如此。
<healthMonitoring>
<rules>
<clear />
<add name="All Errors Default" eventName="All Errors" provider="EventLogProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:01:00" custom=""/>
</rules>
</healthMonitoring>
换句话说,我在默认的 web.config 中省略了这个:
<add name="Failure Audits Default" eventName="Failure Audits" provider="EventLogProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:01:00" custom=""/>
我的问题是:通过删除此节点,我还能排除什么事件日志?如果还有其他潜在影响,是否有另一种或更好的方法来排除我上面提到的这两种类型的错误日志?
提前致谢!
【问题讨论】:
标签: asp.net authentication web-config event-log health-monitoring