# (LoadError) no such file to load -- maxmind/db

**URL:** <https://discuss.elastic.co/t/loaderror-no-such-file-to-load-maxmind-db/199675>\
**Category:** Logstash\
**Created:** [September 16, 2019, 1:55pm UTC](https://discuss.elastic.co/t/loaderror-no-such-file-to-load-maxmind-db/199675 "2019-09-16T13:55:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muraliv](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@muraliv](https://discuss.elastic.co/u/muraliv)\
**Post date:** [September 16, 2019, 1:55pm UTC](https://discuss.elastic.co/t/loaderror-no-such-file-to-load-maxmind-db/199675/1 "2019-09-16T13:55:45Z")

</div>

I have created a custom maxmind db using perl. I have installed maxminddb module for ruby and was able to run a ruby program outside of logstash. When I am executing the same code from logstash, I get a load error as described in the subject line.

bin/logstash -e "filter { ruby { path =\> '/mnt/scripts/lookup.rb' } }" -t

Any ideas?

Thanks  
Murali

---

<div class="post-metadata">

**Author:** ![muraliv](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@muraliv](https://discuss.elastic.co/u/muraliv)\
**Post date:** [September 17, 2019, 11:26am UTC](https://discuss.elastic.co/t/loaderror-no-such-file-to-load-maxmind-db/199675/2 "2019-09-17T11:26:39Z")

</div>

Hi All,

I had to add gem "maxmind-db" to the GemFile and run a "bin/logstash-plugin update " for logtstash to recognize the maxmind-db module.

I can now call a ruby script using ruby filter :-).

Thanks  
Murali

---

<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:** [October 15, 2019, 11:32am UTC](https://discuss.elastic.co/t/loaderror-no-such-file-to-load-maxmind-db/199675/3 "2019-10-15T11:32:54Z")

</div>

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