# Pipeline Moves messages, but still in All Messages Stream

**URL:** https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794
**Category:** Graylog Central (peer support)
**Tags:** route-to-streampl, pipeline-rules
**Created:** [September 11, 2018, 3:46pm UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794 "2018-09-11T15:46:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ThomasPowers](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@ThomasPowers](https://community.graylog.org/u/ThomasPowers)
#### Post date: [September 11, 2018, 3:46pm UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794/1 "2018-09-11T15:46:30Z")

</div>

Hello Everyone,

Been working with Pipelines and simple rules…which has been great.

But in this case, I am using a simple pipeline to move Windows event messages from the Sysmon log to my Sysmon stream. The goal is that we are breaking up our messaging into streams to get around the 1000 field index issues on our larger clients. The sysmon stream in this case is setup, with it’s own index applied to it, and messages are routing nicely. We have checked the box in the Sysmon stream to Remove Matches from the "All Messages’ stream.  
The problem is that we have messages in the Sysmon stream as we would like, yet they are still in the All Messages stream. Obviously I am missing a step somewhere.

The pipeline has 2 simple rules

The first finds the Event Log for Sysmon

**rule "sysmon logs"**  
**when**  
\*\* contains(to\_string($message.Channel), “Microsoft-Windows-Sysmon/Operational”, true) \*\*  
**then**  
**end**

then the next moves it to the Sysmon Stream, which has it’s own index setup

**rule "Routes to Sysmon Stream"**  
**when**  
\*\* true\*\*  
**then**  
\*\* route\_to\_stream(name:“Sysmon”);\*\*  
**end**

This pipeline is executing from the All messages stream

All insight is appreciated

Thanks

TP

---

<div class="post-metadata">

### Author: ![ThomasPowers](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@ThomasPowers](https://community.graylog.org/u/ThomasPowers)
#### Post date: [September 11, 2018, 4:13pm UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794/2 "2018-09-11T16:13:11Z")

</div>

I should note that we are running this on Version 2.3.2, on Ubuntu 16.04  
No plugins installed  
Processing only GELF messages from Windows Machines, sent via NXLog, to a single Input

Message processors chain is  
Pipeline Processor  
Message Filter  
GeoIP

---

<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: [September 12, 2018, 6:39am UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794/3 "2018-09-12T06:39:42Z")

</div>

He Tom,

you need to make use of the processing function `remove_from_stream` or use the flag `remove_from_default` for the `route_to_stream` function.

The Flag in the stream setting is used only when the routing is done via stream rules.

I guess you need to upgrade to have the above mentioned pipeline functions available.

---

<div class="post-metadata">

### Author: ![ThomasPowers](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@ThomasPowers](https://community.graylog.org/u/ThomasPowers)
#### Post date: [September 12, 2018, 1:24pm UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794/4 "2018-09-12T13:24:47Z")

</div>

Ahhh…makes perfect sense! I upgraded to latest and put the remove\_from\_stream field in the rule and viola…works great!

Thanks

TP

---

<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: [September 26, 2018, 1:24pm UTC](https://community.graylog.org/t/pipeline-moves-messages-but-still-in-all-messages-stream/6794/5 "2018-09-26T13:24:58Z")

</div>

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