# Require-Gem in Ruby Filter fails

**URL:** <https://discuss.elastic.co/t/require-gem-in-ruby-filter-fails/27942>\
**Category:** Logstash\
**Created:** [August 24, 2015, 11:46am UTC](https://discuss.elastic.co/t/require-gem-in-ruby-filter-fails/27942 "2015-08-24T11:46:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chlehmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chlehmann/32/4360_2.png) [@chlehmann](https://discuss.elastic.co/u/chlehmann)\
**Post date:** [August 24, 2015, 11:46am UTC](https://discuss.elastic.co/t/require-gem-in-ruby-filter-fails/27942/1 "2015-08-24T11:46:41Z")

</div>

Hi there  
I have set-up my ELK-Stack on my Macbook and its working good. I am now trying to improve the pre-processing of my logs in Logstash; I try to count Emoji's with the ruby-gem "emoji\_data". If i create a ruby-filter with either a init =\> "require 'emoji\_data'" or having the same line in the code-block itself, it always says "could not find gem 'emoji\_data' java. Ruby is installed with rbenv and i am currently using both, ruby 2.2.3 and jruby 9.0.0.0, the gem from above is installed in both environments and i can use it in irb or standalone scripts.

any ideas? I already added it to the Gemfile, but then - as soon i execute bundler - it tells me the same thing while bundler runs... i'm stuck 😕

Thanks for your help  
chris

---

<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:31am UTC](https://discuss.elastic.co/t/require-gem-in-ruby-filter-fails/27942/2 "2017-07-06T05:31:07Z")

</div>


