# Is it possible to make the logstash config file read values from another config file

**URL:** https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855
**Category:** Logstash
**Created:** [June 2, 2019, 8:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855 "2019-06-02T08:49:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mahmoud\_darwish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahmoud_darwish/32/46294_2.png) [@mahmoud\_darwish](https://discuss.elastic.co/u/mahmoud_darwish)
#### Post date: [June 2, 2019, 8:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855/1 "2019-06-02T08:49:10Z")

</div>

hello  
i have a big logstash config file that read near 110 fields in each event. then i have to do many tests and changes on each field, some of my changes uses a static variable.  
i ask if there a way to set all my variables in one file and let the logstash config file read the values from there.

thank u

---

<div class="post-metadata">

### Author: ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)
#### Post date: [June 3, 2019, 6:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855/2 "2019-06-03T06:34:58Z")

</div>

> [@mahmoud\_darwish](#):
>
> ve a big logstash config file that read near 110 fields in each event. then i have to d

The only way to my knowledge is to do the pipeline - to - pipeline configuration.

> **[Pipeline-to-pipeline communication | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html)**

---

<div class="post-metadata">

### Author: ![mahmoud\_darwish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahmoud_darwish/32/46294_2.png) [@mahmoud\_darwish](https://discuss.elastic.co/u/mahmoud_darwish)
#### Post date: [June 3, 2019, 8:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855/3 "2019-06-03T08:49:12Z")

</div>

thank u for replying  
another question, can i use this way to increase the indexing rate if i divide my config file to many files. or its same to increase number of workers ?

---

<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 1, 2019, 8:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-make-the-logstash-config-file-read-values-from-another-config-file/183855/4 "2019-07-01T08:49:18Z")

</div>

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