> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Cognite Data Fusion (CDF) is an industrial DataOps platform. Prefer English docs unless the user asks for another locale.
> Follow /_llms/ index links recursively until you reach page URLs ending in .md. Fetch those Markdown twins instead of HTML.
> For REST APIs, default to calendar version 20230101 (stable). Use 20230101-beta or 20230101-alpha only if the user is on a preview API. Cite paths under /api-reference/concepts/<version>/ and the Cdf-Version header. Prefer the Python SDK (cognite-sdk) unless the user is in JavaScript/TypeScript.
> Start here by task: platform overview /cdf/index.md; data modeling /cdf/dm/index.md; data integration /cdf/integration/index.md; access /cdf/access/index.md; CDF Toolkit /cdf/deploy/cdf_toolkit/index.md; REST quickstart /dev/quickstart.md; Python SDK https://cognite-sdk-python.readthedocs-hosted.com/en/stable/; Atlas AI /cdf/atlas_ai/concepts/index.md; Flows apps /cdf/flows/index.md; MCP and IDE setup /dev/guides/ide_ai_integration.md.
> For implementation work, also load /skill.md.

# Event Hub extractor

> Learn how to use the Cognite Event Hub extractor to connect to Azure Event Hub and extract data using the AMQP protocol.Cognite hosts the Event Hub extractor, so you don't have to download or install anything.

## Before you start

* Assign [access capabilities](https://docs.cognite.com/cdf/access/guides/capabilities.md#cognite-event-hub-extractor) to *create* an Event Hub extractor and for the extractor to *write* data points, time series, events, RAW rows, and instances in data models in the target CDF project.

> [!TIP]
>
> You can use OpenID Connect and your existing identity provider (IdP) framework to manage access to CDF data securely. [Read more](https://docs.cognite.com/cdf/integration/guides/extraction/admin_oidc.md).

## Deploy the extractor

**1. Navigate to extractors**

Navigate to Data fusion > Integrate > Extractors.

**2. Set up the extractor**

Locate the **Cognite Event Hub extractor** and select **Set up extractor**.

**3. Get the connection string**

Get a connection string that you'll need to set up the Event Hub extractor:

1. Locate your Event Hub in Azure.
2. Navigate to Hub Settings > Built-in endpoints > Event Hub compatible endpoint.

Typically, it's sufficient to create a single **job** per Event Hub **source**. An Event Hub is equivalent to a single **topic** on other streaming platforms. You can't filter data received from an Event Hub.

> [!TIP]
>
> When you connect to an Event Hub, you specify a **ConsumerGroup**. We recommend to create a new consumer group for each application that reads from your Event Hub.

## Message formats

Azure Event Hub is a data streaming service on Azure that supports payloads in any format. The Cognite Event Hub extractor supports several [predefined message formats](https://docs.cognite.com/cdf/integration/guides/extraction/hosted_extractors/hosted_extractors_mappings.md). If you want to define your own custom mapping of Event Hub messages, see [custom data formats for hosted extractors](https://docs.cognite.com/cdf/integration/guides/extraction/hosted_extractors/hosted_extractors_custom_mappings.md).
Custom formats used with Event Hub jobs will receive an `input` argument containing the message in a JSON format.
