简体   繁体   English

如何删除 Log Analytics 数据收集器创建的自定义日志 API

[英]How to delete custom log created by Log Analytics Data collector API

How can i perform delete operation on custom log in azure log analytics?如何在 azure 日志分析中对自定义日志执行删除操作? ex: DemoExample_CL例如:DemoExample_CL 在此处输入图像描述

I can delete it when create one in Advanced settings>Data>Custom Logs, but when i use " Log Analytics Data collector API ", it did not show up.我可以在高级设置>数据>自定义日志中创建一个时删除它,但是当我使用“ Log Analytics Data collector API ”时,它没有出现。

AFAIK, this is currently unsupported. AFAIK,这是目前不受支持的。

Similar feedback shown here -> ( https://feedback.azure.com/forums/267889-log-analytics/suggestions/16434184-delete-custom-logs-sended-by-http-data-collector-a ) was shared directly with the responsible Azure feature team.此处显示的类似反馈 -> ( https://feedback.azure.com/forums/267889-log-analytics/suggestions/16434184-delete-custom-logs-sended-by-http-data-collector-a ) 直接共享与负责的 Azure 功能团队合作。 I recommend navigating to the above link and clicking the vote button to raise visibility and priority on this (or) you may raise another feedback which clearly states that you are looking for a feature which helps to 'delete custom log type that is created by Log analytics Data Collector API'.我建议导航到上面的链接并单击投票按钮以提高此(或)的可见性和优先级,您可以提出另一个反馈,明确指出您正在寻找有助于“删除由 Log 创建的自定义日志类型”的功能分析数据收集器 API'。

Just a side note, if you want to delete only content under particular log type then you may try this -> https://docs.microsoft.com/en-us/azure/azure-monitor/platform/personal-data-mgmt#delete purge API.只是附带说明,如果您只想删除特定日志类型下的内容,那么您可以试试这个 -> https://docs.microsoft.com/en-us/azure/azure-monitor/platform/personal-data-mgmt #delete清除 API。 Also please note that this API must not be treated as general-purpose data delete API, but used for GDPR purposes only.另请注意,此 API 不得被视为通用数据删除 API,而只能用于 GDPR 目的。

Hope this helps!!希望这可以帮助!! Cheers!!干杯!!

I managed to do it following the documentation here:我设法按照此处的文档进行操作:
https://docs.microsoft.com/en-us/rest/api/loganalytics/workspacepurge/purge https://docs.microsoft.com/en-us/rest/api/loganalytics/workspacepurge/purge

You can click on "Try It", then you will have to login, provide the name of resource group, workstation name and table name and it will do the trick.您可以单击“尝试”,然后您必须登录,提供资源组名称、工作站名称和表名称,它就会成功。

Not ideal, but at least it's possible somehow.不理想,但至少以某种方式是可能的。

You can delete the logs by going to the log analytics workspace of the corresponding sentinel instance.您可以通过转到相应哨兵实例的日志分析工作区来删除日志。

Inside the log analytics workspace there is a "Custom Logs" tab under settings Image在日志分析工作区内,设置图像下有一个“自定义日志”选项卡

Click on the three dots of the required custom logs to be deleted.单击要删除的所需自定义日志的三个点。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM