# How to separate arriving syslog messages

**URL:** <https://discuss.elastic.co/t/how-to-separate-arriving-syslog-messages/206379>\
**Category:** Logstash\
**Created:** [November 4, 2019, 10:53am UTC](https://discuss.elastic.co/t/how-to-separate-arriving-syslog-messages/206379 "2019-11-04T10:53:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fim/32/90645_2.png) [@fim](https://discuss.elastic.co/u/fim)\
**Post date:** [November 4, 2019, 10:53am UTC](https://discuss.elastic.co/t/how-to-separate-arriving-syslog-messages/206379/1 "2019-11-04T10:53:23Z")

</div>

Logstash instance is listening on a single port.

I tried to separate incoming syslog messages as follows:  
Two ways with "IN" and "==" operator but logstash doesn't catch one of the IFs.

```
input {
    syslog {
        port => 5040
    }
}

output {
    if "10.1.x.x" in [host] {
        pipeline { send_to => "subpipeline-02" }
    }

    else if "host" == "10.1.x.y" {
        pipeline { send_to => "subpipeline-01" }
    }

    else {
        pipeline { send_to => fallback }
    }
}

```

Warning in logstash-plain.log

> [2019-11-04T11:49:43,681][WARN][org.logstash.plugins.pipeline.PipelineBus] Attempted to send event to 'fallback' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.

Has anybody an idea how to solve this issue?

Thanks

---

<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:** [December 2, 2019, 10:53am UTC](https://discuss.elastic.co/t/how-to-separate-arriving-syslog-messages/206379/2 "2019-12-02T10:53:27Z")

</div>

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