> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Configure Kafka as a target

> Learn how to configure custom meters to use Apache Kafka as a target for data transition in Zuora.

Learn how to configure custom meters to use Apache Kafka as a target for data transition in Zuora.

Navigate to **Mediation** > **Meters**

Create a **Custom** meter.

Select **Kafka** as the target. The Kafka settings page is displayed.

![Kafka target settings](/_fern-img/0e1a88217fd1157d5212e525fd9495ae8d06efa35aac9eb4ecdde8122f50c31a.webp)

Click **Select** to select an Event Definition on the Kafka settings page. Only event schema import from an AVSC schema is supported.

Under the **Kafka Settings** section, configure the following settings:

<table>
  <tr>
    <th>
      Setting
    </th>

    <th>
      Configuration
    </th>
  </tr>

  <tr>
    <td>
      **Connection**
    </td>

    <td>
      Select a connection from the Connection drop-down list. To set up a connection, see [Create Kafka connections in meters](/docs/platform/extensibility/mediation/manage-connections-in-meters/create-kafka-connections-in-meters).
    </td>
  </tr>

  <tr>
    <td>
      **Topic**
    </td>

    <td>
      Select a topic from Apache Kafka for events output.
    </td>
  </tr>

  <tr>
    <td>
      **Data Format**
    </td>

    <td>
      Select a data format from the Kafka events. If you choose the AVRO format, you must also specify an event definition which is imported from an AVRO schema.
    </td>
  </tr>

  <tr>
    <td>
      **Key Fields**
    </td>

    <td>
      Click the **Key Fields Format** drop-down list to select one or more key fields.

      The output usage event generates the partition key based on the order of key field selections. The key fields are connected by a “\_” character to generate a final partition key if multiple fields are selected.

      For example, `uom_product_accountId`
    </td>
  </tr>
</table>

Click **Save** to save the Kafka target settings.