# Udp output not working

**URL:** <https://discuss.elastic.co/t/udp-output-not-working/203109>\
**Category:** Logstash\
**Created:** [October 10, 2019, 8:16pm UTC](https://discuss.elastic.co/t/udp-output-not-working/203109 "2019-10-10T20:16:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [October 10, 2019, 8:16pm UTC](https://discuss.elastic.co/t/udp-output-not-working/203109/1 "2019-10-10T20:16:53Z")

</div>

Hi admin,  
I have simple logstash config where i am routing(shipping) logs to some other logstash based on the beat host name, below is the logstash config. I removed the IP, but is not shipping any logs to their server. In my elk i am able to see the logs vai kibana.

I bit doubt on the [host] condition. ( thinking of giving as [agent][hostname], but want to confirm it first )

```
# Logstash configuration
# Beats -> Logstash -> Elasticsearch.

input {
  beats {
    port => 5044
  }
}
#-------------------------------------------------------------------------------
output {
    elasticsearch {
      hosts => ["http://<ip1>:9200","http://<ip2>:9200","http://<ip3>:9200"]
    }
  }
# stdout { codec => rubydebug }
}
#-------------------------------------------------------------------------------
output {
  if [host] =~ "moaf-iws" {
    udp {
      host => "XX.XXX.XXX.XXX"
      port => "8011"
    }
  }
}
#-------------------------------------------------------------------------------
```

---

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [October 14, 2019, 2:07pm UTC](https://discuss.elastic.co/t/udp-output-not-working/203109/2 "2019-10-14T14:07:00Z")

</div>

@magnusbaeck - Could you please check this one ?

---

<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:** [November 11, 2019, 2:07pm UTC](https://discuss.elastic.co/t/udp-output-not-working/203109/3 "2019-11-11T14:07:01Z")

</div>

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