# Hitting multiple streams

**URL:** <https://community.graylog.org/t/hitting-multiple-streams/1354>\
**Category:** Graylog Central (peer support)\
**Tags:** pipeline-rules, route-to-streampl\
**Created:** [June 6, 2017, 9:27am UTC](https://community.graylog.org/t/hitting-multiple-streams/1354 "2017-06-06T09:27:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_m\_cox](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mr\_m\_cox](https://community.graylog.org/u/mr_m_cox)\
**Post date:** [June 6, 2017, 9:27am UTC](https://community.graylog.org/t/hitting-multiple-streams/1354/1 "2017-06-06T09:27:13Z")

</div>

Hi All,

I have just set up a new index and new stream as I need to route some windows logs differently and apply a different retention period.  
What I set up is fine but I now see that the one log is going to two streams as it meets both rule sets. Whats the best practice to avoid this as I need it to only go to the newly configured stream, not the old one but the old one should remain functioning as it currently is.

Thanks,

---

<div class="post-metadata">

**Author:** ![mr\_m\_cox](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mr\_m\_cox](https://community.graylog.org/u/mr_m_cox)\
**Post date:** [June 6, 2017, 9:43am UTC](https://community.graylog.org/t/hitting-multiple-streams/1354/2 "2017-06-06T09:43:29Z")

</div>

I have added a “not contain” rule to the original stream which has resolved it for now but doing this too much could result in very unclear rule sets and make it difficult to manage. Is there a better way?

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [June 7, 2017, 1:01pm UTC](https://community.graylog.org/t/hitting-multiple-streams/1354/4 "2017-06-07T13:01:50Z")

</div>

Use the processing pipelines to route your messages into different streams and not the stream rules.

This way you do the processing and routing in the same place.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [June 21, 2017, 1:06pm UTC](https://community.graylog.org/t/hitting-multiple-streams/1354/5 "2017-06-21T13:06:22Z")

</div>

Closed on June 21, 2017, 1:06pm UTC

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