# Help developing a ruby plugin

**URL:** <https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451>\
**Category:** Logstash\
**Created:** [February 1, 2017, 1:26am UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451 "2017-02-01T01:26:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmcgilli](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gmcgilli](https://discuss.elastic.co/u/gmcgilli)\
**Post date:** [February 1, 2017, 1:26am UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451/1 "2017-02-01T01:26:13Z")

</div>

Can anyone guide me towards a really good sample output plugin with the latest version? Everything online I've seen appears old with a different structure. Likely a newbie mistake but appreciate the help

thanks in advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 2, 2017, 6:55am UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451/2 "2017-02-02T06:55:28Z")

</div>

Have you read [https://www.elastic.co/guide/en/logstash/current/\_how\_to\_write\_a\_logstash\_output\_plugin.html](https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_output_plugin.html) and used the plugin generator command?

---

<div class="post-metadata">

**Author:** ![gmcgilli](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gmcgilli](https://discuss.elastic.co/u/gmcgilli)\
**Post date:** [February 2, 2017, 6:04pm UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451/3 "2017-02-02T18:04:01Z")

</div>

Hi , yes I've used the plugin generator and walked through the tutorial. It builds and and I'm able to install the plugin to logstash. I setup a conf file using the output plugin. Logstash starts and nothing really seems to happen. I've added stouts and puts to the plugin to try to get some feedback but nothing. I also noticed that the plugin template from the generator is different to the code in the link you provided which is confusing. I've tried both ways with the same result. Stock output plugins work just fine so it's something with my plugin. Thanks for responding. If you have any further suggestions I'd be very greatful.

Cheers,  
Garry

---

<div class="post-metadata">

**Author:** ![gmcgilli](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gmcgilli](https://discuss.elastic.co/u/gmcgilli)\
**Post date:** [February 10, 2017, 7:37pm UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451/4 "2017-02-10T19:37:07Z")

</div>

Finally figured it out. I had installed ruby prior to jruby which apparently is a bad thing to do. I setup a new server and only installed jruby and bam it worked first time.

Not an easy one to figure out since there was zero feedback in logs, stdout etc . I hope this saves someone else time and frustration.

---

<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:** [March 10, 2017, 7:37pm UTC](https://discuss.elastic.co/t/help-developing-a-ruby-plugin/73451/5 "2017-03-10T19:37:22Z")

</div>

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