Remove trace from application insight

拜拜、爱过 提交于 2019-12-23 10:25:09

问题


I have deployed my project in Azure & using Application Insights. After deployment, I have done some test that why some traces wrote in respective Application Insights.

But, I just want a fresh (without any trace) Application Insights without creating a new Application Insights resource.

Is it possible to remove the previous traces from Application Insights? how?

*Application Insights- system monitor & trace/log viewer at Azure.


回答1:


It's impossible to delete any data. It ll auto-clear after retention policy days (I guess 1 or 2 weeks).

See SO link talking about disabling telemetry while debug/testing.

Btw, You can vote to bring this idea up for implementation.

Update:
The idea of deleting/purging data is completed. Now it’s possible to purge the data from AppInsights.

https://docs.microsoft.com/en-us/rest/api/application-insights/components/purge




回答2:


You can remove the traces from application insights. Make sure you use Trace table in body of Purge API and provide valid token. Refer for more details on Azure application insights purge API - https://sanganakauthority.blogspot.com/2019/06/how-to-delete-or-purge-azure.html



来源:https://stackoverflow.com/questions/45881091/remove-trace-from-application-insight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!