【发布时间】:2018-08-30 09:05:32
【问题描述】:
我们正在我们的一些网站上运行 Application Insights,我们希望从 Windows 事件日志中聚合日志。我们在 windows server 2016 上运行。
我知道像弹性这样的其他日志传送器可以从 Windows 事件日志中发送日志。 Application Insights 有可能吗?
编辑 22.10.2018
在@cijothomas 发表评论后,我尝试添加 Microsoft 的 EtwCollector nuget 包,并在配置中添加了一些提供程序。
<Add ProviderName="Microsoft-Windows-Crashdump" Level="Warning"/>
<Add ProviderName=".NET Common Language Runtime" Level="Warning" />
<Add ProviderName="ASP.NET Events" Level="Warning" />
<Add ProviderName="Microsoft-Windows-IIS-IISReset" Level="Warning" />
<Add ProviderName="Microsoft-Windows-HttpLog" Level="Warning" />
在 Application Insights 中,我现在可以从应用程序中获取跟踪信息。
AI: Failed to enable provider for the EtwTelemetryModule. Access Denied.
例如对于 Microsoft-Windows-IIS-IISReset 提供程序。
AI: Failed to enable provider Microsoft-Windows-IIS-IISReset for the EtwTelemetryModule.
我已将应用程序用户进程添加到 Windows 中的“性能日志用户”组。我需要添加任何其他设置以允许从该提供商发送日志吗?
【问题讨论】:
-
我建议仔细检查权限是否正确应用。
标签: azure-application-insights telemetry