# Ruby Code

**URL:** <https://discuss.elastic.co/t/ruby-code/112586>\
**Category:** Logstash\
**Created:** [December 20, 2017, 8:30am UTC](https://discuss.elastic.co/t/ruby-code/112586 "2017-12-20T08:30:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [December 20, 2017, 8:30am UTC](https://discuss.elastic.co/t/ruby-code/112586/1 "2017-12-20T08:30:31Z")

</div>

Hi -  
I built a gem locally, and I would need to install it on the logstash to consume those methods in my logstash ruby block. Would you please help me in installing it ?

And also could you please let me know how do I use the def blocks in losgtash ? Thanks

---

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [January 4, 2018, 4:22am UTC](https://discuss.elastic.co/t/ruby-code/112586/2 "2018-01-04T04:22:09Z")

</div>

Could someone help me on this. Thanks !

---

<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 4, 2018, 2:59pm UTC](https://discuss.elastic.co/t/ruby-code/112586/3 "2018-01-04T14:59:28Z")

</div>

Please explain what the problem is and the solution you have tried in more detail. I literally can't imagine the setup behind your question.

---

<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 1, 2018, 2:59pm UTC](https://discuss.elastic.co/t/ruby-code/112586/4 "2018-02-01T14:59:47Z")

</div>

Closed on February 1, 2018, 2:59pm UTC

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