# Using Graylog as an Apache Storm spout?

**URL:** <https://community.graylog.org/t/using-graylog-as-an-apache-storm-spout/507>\
**Category:** Development\
**Created:** [March 17, 2017, 4:23pm UTC](https://community.graylog.org/t/using-graylog-as-an-apache-storm-spout/507 "2017-03-17T16:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexlehm](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/alexlehm/32/187_2.png) [@alexlehm](https://community.graylog.org/u/alexlehm)\
**Post date:** [March 17, 2017, 4:23pm UTC](https://community.graylog.org/t/using-graylog-as-an-apache-storm-spout/507/1 "2017-03-17T16:23:13Z")

</div>

I was wondering if I can process Graylog events with Apache Storm in realtime, e.g. anything that matches a given search expression.  
For this I assume it would be necessary to have a spout that reads the data from Graylog and does the processing in Storm or some kind of push API that can send the data from Graylog to Storm.

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [March 17, 2017, 5:41pm UTC](https://community.graylog.org/t/using-graylog-as-an-apache-storm-spout/507/2 "2017-03-17T17:41:22Z")

</div>

Graylog doesn’t support this out of the box, but I’m pretty sure you can write a Storm Sprout accessing the Graylog REST API and polling it for the required information, or write an output plugin sending messages from a stream to Apache Storm somehow.

See [http://docs.graylog.org/en/2.2/pages/plugins.html](http://docs.graylog.org/en/2.2/pages/plugins.html) for details on writing plugins for Graylog.
