# Input plugin to handle server sent events

**URL:** <https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111>\
**Category:** Logstash\
**Created:** [January 25, 2018, 7:51pm UTC](https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111 "2018-01-25T19:51:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![charekc](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@charekc](https://discuss.elastic.co/u/charekc)\
**Post date:** [January 25, 2018, 7:51pm UTC](https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111/1 "2018-01-25T19:51:39Z")

</div>

Hi  
can the existing http poller be used to receive server sent events? I was looking for a plugin/discussion on this but have not found anything. My goal is to read events from the Marathon event bus ([https://mesosphere.github.io/marathon/docs/event-bus.html](https://mesosphere.github.io/marathon/docs/event-bus.html)) and save it into Graylog. Looks like someone started work 3 years ago on such a plugin but there's no documentation ([https://github.com/magneticio/logstash-input-sse](https://github.com/magneticio/logstash-input-sse))

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [January 29, 2018, 5:58pm UTC](https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111/2 "2018-01-29T17:58:29Z")

</div>

Sorry, there is no plugin that I know of for SSE that works with LS 5.0+.

The plugin you linked to is LS 1.x and 2.x.

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [January 30, 2018, 1:06pm UTC](https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111/3 "2018-01-30T13:06:13Z")

</div>

You may have some luck with this library [https://github.com/radiospiel/sse](https://github.com/radiospiel/sse) - you have to make the binary.

Or maybe try a python sse client.

Maybe you can pipe the output to the `logstash-input-stdin`

---

<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:** [February 27, 2018, 1:06pm UTC](https://discuss.elastic.co/t/input-plugin-to-handle-server-sent-events/117111/4 "2018-02-27T13:06:35Z")

</div>

Closed on February 27, 2018, 1:06pm UTC

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