简体   繁体   English

如何在Azure Application Inisghts中记录404页面的Kentico中的事件URL字段?

[英]How to log the Event URL field in Kentico for 404 pages in Azure Application Inisghts?

I would like to log the "Event URL" field in Kentico Portal logs to Azure Application Insights for 404 requests. 我想将Kentico Portal日志中的“事件URL”字段记录到404请求的Azure Application Insights中。 Since I changed my custom page for 404 errors in Kentico Portal I only get "PortalTemplate.apsx" for the url field in the requests table in AppInsights. 由于我在Kentico Portal中将自定义页面更改为404错误,因此我在AppInsights的请求表中仅获得URL字段的“ PortalTemplate.apsx”。

We already have this as a recommendation on the GitHub - use RawUrl instead of Request.Url . 我们已经在GitHub上将此作为推荐 -使用RawUrl而不是Request.Url

As explained here RawUrl better suites cases when the request was redirected to the custom error page: Request.RawUrl vs. Request.Url 如此处所述,当请求重定向到自定义错误页面时,RawUrl可提供更好的解决方案: Request.RawUrl与Request.Url

Please upvote the issue on GitHub. 请在GitHub上解决该问题。 As a workaround now you can replace OperationNameTelemetryInitializer in ApplicaitonInsights.config to your own implementation of it that uses RawUrl instead of the Url . 作为一种变通方法,现在你可以替换OperationNameTelemetryInitializerApplicaitonInsights.config自己的实现它使用RawUrl代替的Url

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为Azure Function App(Terraform)配置应用程序提示 - Configure Application Inisghts for Azure Function App (Terraform) 如何阻止Kentico事件日志变得越来越大? - How to stop Kentico Event Log from getting huge? Azure - 应用程序事件日志警报 - Azure - Application Event Log Alerts Application Insights中有效URL上的Azure随机404 - Azure random 404 on valid URL in Application Insights 工作人员服务中的事件登录未发布到 Azure Application Insight - Event log in in worker service not published to Azure Application Insight 如何将异常记录到 Azure 应用程序日志 - How to Log Exceptions to Azure application logs 如何从窗口azure访问事件日志 - How to access event log from window azure 如何使用Azure资源管理器在Azure Web应用程序中设置应用程序日志 - How to set the application log in an Azure webapp using Azure resource manager 如何让azure webrole记录所有404s - how to get azure webrole to log all 404s Azure html5 Web应用程序抛出应用程序缓存错误事件:清单提取失败(404) - Azure html5 web app throwing Application Cache Error event: Manifest fetch failed (404)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM