# What is best way to send logstash data to greylog?

**URL:** <https://discuss.elastic.co/t/what-is-best-way-to-send-logstash-data-to-greylog/41661>\
**Category:** Logstash\
**Created:** [February 12, 2016, 9:28pm UTC](https://discuss.elastic.co/t/what-is-best-way-to-send-logstash-data-to-greylog/41661 "2016-02-12T21:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeKing](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@JoeKing](https://discuss.elastic.co/u/JoeKing)\
**Post date:** [February 12, 2016, 9:28pm UTC](https://discuss.elastic.co/t/what-is-best-way-to-send-logstash-data-to-greylog/41661/1 "2016-02-12T21:28:00Z")

</div>

I am currently sending log data from Logstash to Greylog via Gelf UDP. Is there a better way to do this? Does Logstash have a way to send it via TCP in Gelf format?

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [February 12, 2016, 10:30pm UTC](https://discuss.elastic.co/t/what-is-best-way-to-send-logstash-data-to-greylog/41661/2 "2016-02-12T22:30:40Z")

</div>

Hi,

At this time sending directly to greylog requires UDP. Refer to this enhancement request:

> <https://github.com/logstash-plugins/logstash-output-gelf/issues/1>

---

<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 6, 2017, 5:11am UTC](https://discuss.elastic.co/t/what-is-best-way-to-send-logstash-data-to-greylog/41661/3 "2017-07-06T05:11:43Z")

</div>


