# Multiple Logstash instances sharing code

**URL:** <https://discuss.elastic.co/t/multiple-logstash-instances-sharing-code/320861>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [December 9, 2022, 7:05am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-sharing-code/320861 "2022-12-09T07:05:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thijsvdp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thijsvdp/32/146696_2.png) [@Thijsvdp](https://discuss.elastic.co/u/Thijsvdp)\
**Post date:** [December 9, 2022, 7:05am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-sharing-code/320861/1 "2022-12-09T07:05:59Z")

</div>

Hi,

I have four pipelines, two related to seeding data, and two related to continuously update data in elasticsearch. All pipelines share a lot of code. I am planning to run the pipelines in docker, and would like to create a single image such that based on a provided argument start the seed pipelines or the update pipelines.

I have been searching, but I am not sure if I missed some documentation on this. As I understood so far one can either start one pipeline or all inside the pipelines.yml

Thanks!

---

<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:** [January 6, 2023, 7:06am UTC](https://discuss.elastic.co/t/multiple-logstash-instances-sharing-code/320861/2 "2023-01-06T07:06:51Z")

</div>

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