# Is it possible to create a master conf file and "overrides"

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699>\
**Category:** Logstash\
**Created:** [April 4, 2018, 8:42am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699 "2018-04-04T08:42:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [April 4, 2018, 8:42am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699/1 "2018-04-04T08:42:14Z")

</div>

Hello,  
I have a logstash.conf file that I use for several indexes.  
The only difference between each conf file is the input path and the index name in the output to elasticsearch.

I would like to create a single conf file as a skeleton file, and then have each index "inherit" this file and then only set the input path and output index-name.

Is something like that possible in logstash? it makes complex configuration modular, and that's a very good thing to have.

Thanks,  
JD

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 4, 2018, 8:46am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699/2 "2018-04-04T08:46:57Z")

</div>

> I would like to create a single conf file as a skeleton file, and then have each index "inherit" this file and then only set the input path and output index-name.

Logstash has nothing built-in for this.

See [Recommended way to maintain multiple logstash output plugin configuration - #2 by magnusbaeck](https://discuss.elastic.co/t/recommended-way-to-maintain-multiple-logstash-output-plugin-configuration/126678/2) for a recent very similar question.

---

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [April 4, 2018, 8:51am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699/3 "2018-04-04T08:51:21Z")

</div>

Thank you, yes I'm aware of the external ways to accomplish that. I think it's a nice use case for the Logstash product team. Thank you Magnus!

---

<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:** [May 2, 2018, 8:58am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-master-conf-file-and-overrides/126699/4 "2018-05-02T08:58:16Z")

</div>

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