# Compose logstash configuration from multiple files (import config fragments)

**URL:** https://discuss.elastic.co/t/compose-logstash-configuration-from-multiple-files-import-config-fragments/164476
**Category:** Logstash
**Created:** [January 16, 2019, 1:35pm UTC](https://discuss.elastic.co/t/compose-logstash-configuration-from-multiple-files-import-config-fragments/164476 "2019-01-16T13:35:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Presence](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@Presence](https://discuss.elastic.co/u/Presence)
#### Post date: [January 16, 2019, 1:35pm UTC](https://discuss.elastic.co/t/compose-logstash-configuration-from-multiple-files-import-config-fragments/164476/1 "2019-01-16T13:35:14Z")

</div>

I have a few pipelines that contain common configuration (filters, mainly). Is there a logstash mechanism whereby I can lift the common config out into a separate file and have this imported into the primary config file at load time? This would make modifying the bits of shared config much quicker and more consistent. Ideally logstash would also be able to auto reload when the imported file changed.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 16, 2019, 1:39pm UTC](https://discuss.elastic.co/t/compose-logstash-configuration-from-multiple-files-import-config-fragments/164476/2 "2019-01-16T13:39:57Z")

</div>

You could define [multiple pipelines](https://www.elastic.co/guide/en/logstash/6.5/multiple-pipelines.html) and use [pipeline-to-pipeline communication](https://www.elastic.co/guide/en/logstash/6.5/pipeline-to-pipeline.html) to send data between them.

---

<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: [February 13, 2019, 1:51pm UTC](https://discuss.elastic.co/t/compose-logstash-configuration-from-multiple-files-import-config-fragments/164476/3 "2019-02-13T13:51:57Z")

</div>

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