Type to search.

Kafka Consumer (OpenTelemetry)

Serverless Observability Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Serverless Security Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Stack Preview 9.4+

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Preview since 9.4

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Version 0.1.2 Availability Preview This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. (View all)
Subscription level
What's this?
Basic
Developed by
What's this?
Elastic
Minimum Kibana version(s) 9.4.0
The Kafka Consumer (OpenTelemetry) integration v0.1.2 is in technical preview

To use pre-release integrations, go to the Integrations page in Kibana, scroll down, and toggle on the Display beta integrations option.

This input package enables consumption of telemetry data (logs, metrics, and traces) from Apache Kafka using the Kafka receiver from the OpenTelemetry Collector Contrib project.

This receiver is designed to consume OTLP-formatted telemetry data that has been published to Kafka topics, making it useful for pipeline architectures where Kafka serves as an intermediary buffer for observability data.

This package configures the Kafka receiver in the EDOT (Elastic Distribution of OpenTelemetry) collector, which:

  1. Connects to one or more Kafka brokers
  2. Subscribes to configured topics for each signal type (logs, metrics, traces)
  3. Consumes and decodes messages using the specified encoding format
  4. Forwards the telemetry data to Elastic Agent for processing and indexing in Elasticsearch
Setting Description Default
Brokers List of Kafka broker addresses localhost:9092
Consumer Group ID Consumer group for message consumption otel-collector

Each signal type (logs, metrics, traces) can be configured independently:

Setting Description Default
Topics Kafka topics to consume from Signal-specific defaults
Encoding Message encoding format otlp_proto
Exclude Topics Regex patterns to exclude topics None

Default Topics:

  • Logs: otlp_logs
  • Metrics: otlp_metrics
  • Traces: otlp_spans

All signals: otlp_proto, otlp_json

Traces only: jaeger_proto, jaeger_json, zipkin_proto, zipkin_json, zipkin_thrift

Logs only: raw, text, json, azure_resource_logs

The receiver supports multiple authentication methods:

  • SASL: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, AWS MSK IAM
  • Kerberos: Username/password or keytab-based authentication
  • TLS: Client certificate authentication with optional CA verification

For the full list of available settings, refer to the upstream Kafka receiver documentation.

  1. Verify that the broker addresses are correct and reachable
  2. Check that the Kafka cluster is running and accepting connections
  3. Ensure network connectivity between the collector and Kafka brokers
  1. Verify SASL credentials are correct
  2. For Kerberos, ensure the keytab or credentials are valid
  3. For TLS, verify certificate paths and that certificates are not expired
  1. Ensure the encoding setting matches the actual message format
  2. Verify that producers are sending correctly formatted messages
  3. Check Kafka topic configuration for compatibility
  1. Ensure the consumer group ID is unique if running multiple collectors
  2. Check for consumer group rebalancing issues in Kafka logs
  3. Verify that the initial offset setting matches your requirements
Changelog
Version Details Minimum Kibana version
0.1.2 Enhancement (View pull request)
Add group field to package manifest.
9.4.0
0.1.1 Enhancement (View pull request)
Update package title and description to improve clarity of use.
9.4.0
0.1.0 Enhancement (View pull request)
Initial version of the package
9.4.0