# Logstash Indices

**URL:** <https://discuss.elastic.co/t/logstash-indices/189855>\
**Category:** Logstash\
**Created:** [July 10, 2019, 7:35pm UTC](https://discuss.elastic.co/t/logstash-indices/189855 "2019-07-10T19:35:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)\
**Post date:** [July 10, 2019, 7:35pm UTC](https://discuss.elastic.co/t/logstash-indices/189855/1 "2019-07-10T19:35:38Z")

</div>

What is the best way to take 1 datastream, 1 input and run 2 parallel filters out of it for 2 different indices .

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 10, 2019, 7:41pm UTC](https://discuss.elastic.co/t/logstash-indices/189855/2 "2019-07-10T19:41:59Z")

</div>

Pipeline-to-pipeline communication using a [distributor pattern](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#distributor-pattern).

---

<div class="post-metadata">

**Author:** ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)\
**Post date:** [July 10, 2019, 7:56pm UTC](https://discuss.elastic.co/t/logstash-indices/189855/3 "2019-07-10T19:56:48Z")

</div>

Same data, so I cant specify type, I need the same data with two seperate filters that will come out as 2 different indices.  
the two streams are used for different purposes  
Is duplicating the data the right way to do it ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 10, 2019, 8:29pm UTC](https://discuss.elastic.co/t/logstash-indices/189855/4 "2019-07-10T20:29:11Z")

</div>

> [@Elk\_huh](#):
>
> Is duplicating the data the right way to do it ?

I think so. Just unconditionally send the data to two pipelines.

---

<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:** [August 7, 2019, 8:29pm UTC](https://discuss.elastic.co/t/logstash-indices/189855/5 "2019-08-07T20:29:12Z")

</div>

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