# Centralize Kafka input settings

**URL:** https://discuss.elastic.co/t/centralize-kafka-input-settings/238496
**Category:** Logstash
**Created:** [June 24, 2020, 1:52pm UTC](https://discuss.elastic.co/t/centralize-kafka-input-settings/238496 "2020-06-24T13:52:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [June 24, 2020, 1:52pm UTC](https://discuss.elastic.co/t/centralize-kafka-input-settings/238496/1 "2020-06-24T13:52:15Z")

</div>

Hi,

Is there a way to refer to one file in my Logstash configuration files where I put all Kafka input general settings and avoid flooding (20 rows that are the same) each pipeline?

Thank you!

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 24, 2020, 2:43pm UTC](https://discuss.elastic.co/t/centralize-kafka-input-settings/238496/2 "2020-06-24T14:43:02Z")

</div>

There is no include function in logstash. You might be able to use [environment variables](https://www.elastic.co/guide/en/logstash/current/environment-variables.html). Either to set the common values, or to have a single file shared by several pipelines where the different options (topic?) are set via an environment variable.

---

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [June 24, 2020, 3:40pm UTC](https://discuss.elastic.co/t/centralize-kafka-input-settings/238496/3 "2020-06-24T15:40:43Z")

</div>

Thanks!  
It'd be nice to include common options to keep stuff more transparent. If I make changes on the input settings of all Kafka pipelines, I need to do that on each node \* 20 times. Of course, the deployment isn't the issue, updating each configuration file unnecessarily is.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 22, 2020, 3:40pm UTC](https://discuss.elastic.co/t/centralize-kafka-input-settings/238496/4 "2020-07-22T15:40:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
