> For the complete documentation index, see [llms.txt](https://docs.threatdefence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.threatdefence.com/siem-integrations/sso-and-identity/microsoft-entra-id-event-hub.md).

# Microsoft Entra ID Event Hub

To set up streaming from Microsoft Entra ID:

1. In Azure Portal, click **Microsoft Entra ID** in the side navigation pane.

<figure><img src="https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-fbcdc811a34e176ce009635d1e0237620fec3dbc%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Scroll down to **Monitoring** in the side menu and click **Audit logs**.

<figure><img src="https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-a44fd917ed1acc4155a4db5930770a076efb44b3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Click **Export Data Settings**.

<figure><img src="https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-64fc27399cb40d7c3897ad9bb4dcce72d194f996%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Click **+Add diagnostics setting**.\
   Alternatively, if you already have a logging configuration set up, click **Edit Settings** next to the diagnostic setting.

<figure><img src="https://4191868192-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOlFHF8fl339QOw3Og8L7%2Fuploads%2Fgit-blob-9a4a0248d726c11c1f8ddc41a104db003c276788%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Tick these **Logs** checkboxes:

* AuditLogs
* SignInLogs
* NonInteractiveUserSignInLogs
* ServicePrincipalSignInLogs
* ManagedIdentitySignInLogs
* ProvisioningLogs
* ADFSSignInLogs
* RiskyUsers
* UserRiskEvents

6. Tick **Stream to an event hub**.
7. Select the event hub namespace and event hub that you created earlier.\
   If you don’t select an event hub, Azure Portal will create an event hub called *insights-logs-audit* in the selected namespace.
8. Click **Save**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.threatdefence.com/siem-integrations/sso-and-identity/microsoft-entra-id-event-hub.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
