Share via

How to pull only the alerts type of event from Microsoft Entra ID

Nisha Das 5 Reputation points
2026-03-11T07:12:03.2133333+00:00

Hi Team,

We are currently evaluating options to pull only Microsoft Entra ID alerts into our SIEM platform and would appreciate guidance on the best approach.

At the moment, we are exploring different options such as Microsoft Graph APIs and Event Hub streaming, but we have some uncertainties around how alerts are sourced and filtered.

From our understanding, the Microsoft Graph API can retrieve alerts generated by services such as Microsoft Sentinel and Microsoft Defender. However, we are unsure whether Microsoft Entra ID alerts are also included through the same API endpoints.

Specifically, we would like clarification on the following:

Does the Microsoft Graph API include Microsoft Entra ID alerts along with alerts from Sentinel and Defender?

If Entra ID alerts are included, is there a way to filter the API response to retrieve only Entra ID alerts?

If filtering is not possible through the Graph API, would it be better to use Event Hub streaming to send only Entra ID alerts to our SIEM?

If Event Hub is the recommended approach, which diagnostic settings or alert categories should be configured to ensure that only Entra ID alerts are streamed?

Our goal is to ingest only Entra ID–related alerts into the SIEM to avoid unnecessary data ingestion while still receiving alerts in near real time.

Any recommendations on the best architecture or APIs/services to use for this scenario would be greatly appreciated.

Thank you.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 82,355 Reputation points MVP Volunteer Moderator
    2026-03-11T11:08:18.8366667+00:00

    Yep - the Microsoft Graph Security API (/security/alerts_v2) does include Microsoft Entra ID alerts, such as those from Identity Protection, alongside alerts from Microsoft Defender for Endpoint, Office, and Cloud Apps, as it acts as a unified broker for Microsoft security products. The API provides a broad view, pulling in alerts from various connected Microsoft security providers into a single schema.

    If Entra ID alerts are included, you can filter the API response to retrieve only specific alerts using the $filter query parameter on the vendorInformation/provider field (e.g., Azure Active Directory Identity Protection) or by checking specific alert titles. Using the v2 alert resource (alerts_v2) is generally recommended to ensure you receive the most recent alert data, since the legacy alert API is being deprecated.

    If complex filtering is required that the Graph API cannot handle, or if you prefer a push mechanism, using Event Hub streaming would give you near-real-time approach to ingest only relevant alerts. This approach allows you to filter at the source by enabling only specific diagnostic settings, ensuring that only desired data is streamed rather than pulling everything via API.

    When using Event Hub , you should configure the Diagnostic Settings in the Entra ID portal to select AuditLogs, SignInLogs, and NonInteractiveUserSignInLogs, and check the specific log categories that align with your required security alerts, such as IdentityProtectionEvents. For the most targeted data, you can create multiple diagnostic settings to send different log categories to different destinations, or use the Filter options to narrow down the data, allowing you to only stream alerts relevant to your SIEM.

    For your requirement to minimize ingestion while receiving near real-time alerts, the best architecture is to configure Azure Event Hub streaming directly from Entra ID. This allows you to select only the necessary diagnostic logs (like Sign-in and Audit logs) and push them directly to your SIEM, which is often more efficient and less costly than polling the Graph API. 


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


Your answer

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