多个资源组的Azure活动日志收集

时间:2019-07-05 08:34:26

标签: python azure

我可以使用curl命令从特定资源组中收集天蓝色日志

curl -s -k -X GET -H“授权:承载%s” -H“内容类型:application / json”'https://management.azure.com/subscriptions/%s/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01& $ filter = eventTimestamp %% 20ge %% 20 %% 27 %s %% 27 %% 20and %% 20eventTimestamp %% 20le %% 20 %% 27%s %% 27 %% 20and %% 20resourceGroupName %% 20eq %% 20 %% 27%s %% 27&$ select = operationName,状态,资源ID,订阅ID)

我的问题是resourceGroupName,它仅使用一个资源组名称。我想在这里使用多个资源组名称。我有什么办法吗?

1 个答案:

答案 0 :(得分:0)

以下是用于获取活动日志的Azure REST API调用当前受支持的语法。

enter image description here

Documentation Reference

希望这会有所帮助。