# What is the best way to transfer logs from Syslog server to Logstash?

**URL:** <https://discuss.elastic.co/t/what-is-the-best-way-to-transfer-logs-from-syslog-server-to-logstash/131598>\
**Category:** Logstash\
**Created:** [May 13, 2018, 12:58am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-transfer-logs-from-syslog-server-to-logstash/131598 "2018-05-13T00:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [May 13, 2018, 12:58am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-transfer-logs-from-syslog-server-to-logstash/131598/1 "2018-05-13T00:58:38Z")

</div>

Hi,

I am trying to send logs from Syslog server to Logstash. Can someone please say what would be the best way?

Using Syslog input plugin or TCP? I am currently using TCP plugin but I feel I am missing nearly 25% logs. I also saw for syslog logs, they are using both TCP and UDP at the same time like,

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

```

Why to use both TCP and UDP at the same time? Please shed some light.

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:** [June 10, 2018, 12:58am UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-transfer-logs-from-syslog-server-to-logstash/131598/2 "2018-06-10T00:58:39Z")

</div>

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