Edge Delta Kafka Input

Collect events from a Kafka topic.

Overview

This input type allows Edge Delta agent will collect events from a Kafka topic.

Example

kafkas:
    - labels: "errorcheck"
      endpoint: "something"
      topic: "topic"
    - labels: "errorcheck-tls"
      endpoint: "something-tls"
      topic: "topic"
      tls:
        disable_verify: true
        ca_file: /var/etc/kafka/ca_file
        ca_path: /var/etc/kafka
        crt_file: /var/etc/kafka/crt_file
        key_file: /var/etc/kafka/keyfile
        key_password: p@ssword123
        client_auth_type: noclientcert 
        min_version: TLSv1_1
        max_version: TLSv1_3
    - labels: "my-kafka-events"
      endpoint: "something"
      topic: "topic"
      group_id: "my-group"
      sasl:
        username: kafka_username
        password: p@ssword123
        mechanism: PLAIN 
        optional: false
        field_mappings:
          namespace: "kubernetes.namespace"
          serviceName: "service"
          roleName: "user.role"
          systemType: "system"

Parameters

labels

Required

Enter a descriptive name for this input. When you create a workflow, you will use this label to enter your input into the workflow.

- labels: "my-kafka-events"

endpoint

Required

Enter your Kafka broker address.

endpoint: "something-tls"

topic

Required

Enter your Kafka topic name.

 topic: "topic"

group_id

Required

Enter a consumer group within the specified topic name.

 group_id: "my-group"

filters

Optional

Enter an existing filter to add to this input. To learn more, see Filters.

 filters: 
   - info 

sasl: username

Optional

Enter your Kafka SASL username.

 sasl:
  username: kafka_username

sasl: password

Optional

Enter your Kafka SASL password.

 sasl:
  password: p@ssword123

sasl: mechanism

Optional

Enter a Kafka SASL mechanism type to implement a secure authentication. You can enter:

  • PLAIN
  • SCRAM-SHA-256
  • SCRAM-SHA-512
sasl:
  mechanism: PLAIN  

tls: disable_verify

Optional

To disable a TLS verification of a certificate, enter disable_verify: true. To enable a TLS verification of the certificate, you can enter disable_verify: false or you can remove this line entirely.

 tls:
  disable_verify: true

tls: ca_path

Optional

Enter the absolute file path to the CA certificate file.

tls:
  ca_path: /var/etc/kafka 

tls: ca_file

Optional

Enter the absolute path to scan the CA certificate file.

 tls:
  ca_file: /certs/ca.pem

tls: crt_path

Optional

Enter the absolute path to the certificate file.

 tls:
  crt_file: /certs/server-cert.pem

tls: key_file

Optional

Enter the absolute path to the private key file.

 tls:
  key_file: /certs/server-key.pem

tls: key_password

Optional

Enter the password for the key file.

 tls:
  key_password: p@ssword123

tls: client_auth_type

Optional

Enter a client authorization type.

You can enter:

noclientcert requestclientcert requireanyclientcert verifyclientcertifgiven requireandverifyclientcert

 tls:
  client_auth_type: noclientcert

tls: min_version

Optional

Enter the minimum version of TLS to accept.

 tls:
  min_version: TLSv1_1

tls: max_version

Optional

Enter the maximum version of TLS to accept.

 tls:
  max_version: TLSv1_3