Audit Log API to pull events belongs some specific services

Ravi P 20 Reputation points
2024-02-21T13:26:59.8966667+00:00

Hello , I know there is an Audit log API https://learn.microsoft.com/en-us/rest/api/monitor/activity-logs/list?view=rest-monitor-2015-04-01&tabs=HTTP to pull all the events at subscription level. Is there a way to pull the events specific to particular service? for an instance- We want to pull all the events which are specific to AZURE MONITOR service. Do we have any filter/select to get events specific to AZURE MONITOR service.

Thanks,
Ravi P.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,182 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,356 Reputation points
    2024-02-23T11:39:47.9166667+00:00

    Ravi P, thank you for posting this question.

    As you mentioned in the question, Azure Monitor activity log provides insight into subscription-level events. The API referenced in the question (Activity Logs - List) can be used to filter events specific to the Azure service required, using the $filter URI parameter. The filtering will have to be done for specific resource providers of the service of interest.

    For details on the resource providers available for various services, see - What are the resource providers for Azure services

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.