# How to setup multiple Logstash conf reading the same input

**URL:** <https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878>\
**Category:** Logstash\
**Created:** [August 10, 2021, 5:50am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878 "2021-08-10T05:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [August 10, 2021, 5:50am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878/1 "2021-08-10T05:50:55Z")

</div>

I want to push 2 different transformations of the same data to 2 different outputs.  
conf-v1: source/_.txt -\> filter A -\> output 1  
conf-v2: source/_.txt -\> filter B -\> output 2

If I use 2 different pipelines, they will still use the same sincedb which will result in data loss.

How to achieve the above?

---

<div class="post-metadata">

**Author:** ![chandu5565](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chandu5565](https://discuss.elastic.co/u/chandu5565)\
**Post date:** [August 10, 2021, 6:30am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878/2 "2021-08-10T06:30:52Z")

</div>

Hi LogSpree,

You can explicitly define sincedb\_path in configuration files.

conf-v1: source/ _.txt_

```auto
sincedb_path => "/path/.sincedb_confv1"

```

conf-v2: source/ _.txt_

```auto
sincedb_path => "/path/.sincedb_conf-v2"

```

---

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [August 10, 2021, 6:33am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878/3 "2021-08-10T06:33:02Z")

</div>

Thanks.

This is something I just found ... forked pipelines ...  
Would it help?

> **[Pipeline-to-Pipeline Communication | Logstash Reference \[7.14\] | Elastic](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#forked-path-pattern)**

---

<div class="post-metadata">

**Author:** ![chandu5565](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chandu5565](https://discuss.elastic.co/u/chandu5565)\
**Post date:** [August 10, 2021, 6:50am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878/4 "2021-08-10T06:50:34Z")

</div>

Yes you can use forked pipelines as shown in example or you can change the sincedb\_path and proceed.

---

<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:** [September 7, 2021, 6:50am UTC](https://discuss.elastic.co/t/how-to-setup-multiple-logstash-conf-reading-the-same-input/280878/5 "2021-09-07T06:50:50Z")

</div>

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