# Syslog input, open only udp port

**URL:** <https://discuss.elastic.co/t/syslog-input-open-only-udp-port/134675>\
**Category:** Logstash\
**Created:** [June 5, 2018, 6:35pm UTC](https://discuss.elastic.co/t/syslog-input-open-only-udp-port/134675 "2018-06-05T18:35:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Herrera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastian_herrera/32/53209_2.png) [@Sebastian\_Herrera](https://discuss.elastic.co/u/Sebastian_Herrera)\
**Post date:** [June 5, 2018, 6:35pm UTC](https://discuss.elastic.co/t/syslog-input-open-only-udp-port/134675/1 "2018-06-05T18:35:25Z")

</div>

Hello, i want to know if there is any possibility to open only the udp port for syslog. Now when i configure it open both tcp and udp.

Regards

---

<div class="post-metadata">

**Author:** ![pge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pge/32/32641_2.png) [@pge](https://discuss.elastic.co/u/pge)\
**Post date:** [June 28, 2018, 9:06am UTC](https://discuss.elastic.co/t/syslog-input-open-only-udp-port/134675/2 "2018-06-28T09:06:37Z")

</div>

Hi @Sebastian_Herrera  
try this on input configuration file

```
input {
    udp {   
         type => "syslog" 
         port => 514 
    } 
} 

```

if you have more than one interface you can specify also the ip.

Example:

```
input {
    udp {   
         type => "syslog" 
         port => 514 
         host => "192.168.1.100"
    } 
}
```

---

<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:** [July 26, 2018, 9:06am UTC](https://discuss.elastic.co/t/syslog-input-open-only-udp-port/134675/3 "2018-07-26T09:06:39Z")

</div>

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