Skip to content

environment variable usage in kafka_configs for rdkafka_group inputΒ #434

@shyimo

Description

@shyimo

Is your feature request related to a problem? Please describe.

It seems like there is no way to pass environment variables for kafka_configs hash in rdkafka_group input.
for example:

<source>
  @type  rdkafka_group
  @label @APPLICATIONS
  topics "#{ENV["APPLICATIONS_TOPIC"] || "application-logs"}"
  format "json"

  kafka_configs {
     "bootstrap.servers": "#{ENV["BROKER_ADDRESS"] || "localhost:9092"}"
  }

</source>

the bootstrap.servers will not parse the BROKER_ADDRESS environment variable.

Describe the solution you'd like

This will be great if there was a way to parse those environment variables inside the kafka_configs hash.
At the current situation, we are not able to fully use all librdkafka features since hard coded values are not possible for some of the fields.

Describe alternatives you've considered

any parsing method that will able to get dynamic fields and not hard coded values

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions