# Pipeline rules to sort syslog input to separate streams based on device, not working

**URL:** <https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526>\
**Category:** Graylog Central (peer support)\
**Tags:** pipeline-rules, cisco, asa\
**Created:** [November 1, 2023, 6:26pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526 "2023-11-01T18:26:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckilmer75](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@ckilmer75](https://community.graylog.org/u/ckilmer75)\
**Post date:** [November 1, 2023, 6:26pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526/1 "2023-11-01T18:26:18Z")

</div>

I have created a pipeline with rules to sort the incoming Cisco ASA Syslog messages (Default Stream) based on the ASA’s Hostname into a separate stream for each ASA Host. I see the pipeline getting throughput but the rules do not appear to be sorting anything and the separate streams remain empty.

Running Graylog Server v. 5.1.7

rule “Sort Cisco ASA Syslogs by Host - FW”  
when  
has\_field(“host”) && to\_string($message.host) == “host1”  
then  
route\_to\_stream(id:“6542721db6b7875b3c1b300b”);  
end

I have 2 additional rules for the other 2 ASA devices as written above for Host1. They are all 3 in my single Stage 0 connected to the Default Steam that is currently receiving the data from all 3 devices.

Each of the 3 new streams I want this data routed to also have a rule defined for each looking for the “Host” field to match the device’s hostname that is supposed to be routing to that stream.

I also verified that the Message Filter Chain is located above Pipeline Processor in the Message Processors Config.

Am I going about this the right way? is “host” the correct name for the field denoting a Cisco ASA’s hostname/device\_name?

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [November 1, 2023, 9:55pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526/2 "2023-11-01T21:55:13Z")

</div>

Hey @ckilmer75

If all three rule are on stage “0” when one hits the other two dont get used. Try separting each rule to there own pipe.

---

<div class="post-metadata">

**Author:** ![ckilmer75](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@ckilmer75](https://community.graylog.org/u/ckilmer75)\
**Post date:** [November 2, 2023, 1:04pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526/3 "2023-11-02T13:04:45Z")

</div>

I had it that way previously and it didn’t work which is why I tried the current way. I’ll separate them out again and see if something changed.

Edit: I put them each in their own stage and they are still not processing messages. I see Stage 0 has throughput coming in, but it’s not processing it.

---

<div class="post-metadata">

**Author:** ![ckilmer75](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@ckilmer75](https://community.graylog.org/u/ckilmer75)\
**Post date:** [November 2, 2023, 2:09pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526/4 "2023-11-02T14:09:26Z")

</div>

Okay, I solved the issue. I gave up on trying to sort via Hostname and instead sorted via Source (IP) and now the rules are sorting to the correct streams.

---

<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:** [November 16, 2023, 2:10pm UTC](https://community.graylog.org/t/pipeline-rules-to-sort-syslog-input-to-separate-streams-based-on-device-not-working/30526/5 "2023-11-16T14:10:27Z")

</div>

Closed on November 16, 2023, 2:10pm UTC

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