# Can't install ruby gem into logstash environment

**URL:** <https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926>\
**Category:** Logstash\
**Created:** [January 14, 2020, 4:17am UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926 "2020-01-14T04:17:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Seel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_seel/32/53421_2.png) [@Brian\_Seel](https://discuss.elastic.co/u/Brian_Seel)\
**Post date:** [January 14, 2020, 4:17am UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926/1 "2020-01-14T04:17:20Z")

</div>

I need to install a gem into the ruby instance that logstash uses. Specifically, I need to install jdbc-sqlite3 to support database calls that can't be done as an input plugin.

I have tried doing it remote or local, without success.

> bitnami@ip-172-31-64-199:/opt/bitnami/logstash$ sudo logstash-plugin install ~/jdbc-sqlite3-3.8.11.2.gem --no-verify  
> ERROR: Mixed source of plugins, you can't mix local `.gem` and remote gems
> 
> See: 'bin/logstash-plugin install --help'  
> bitnami@ip-172-31-64-199:/opt/bitnami/logstash$ sudo logstash-plugin install jdbc-sqlite3 --no-verify  
> Validating jdbc-sqlite3  
> jdbc-sqlite3 is not a Logstash plugin  
> ERROR: Installation aborted, verification failed for jdbc-sqlite3

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 14, 2020, 2:16pm UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926/2 "2020-01-14T14:16:39Z")

</div>

> [@Brian\_Seel](#):
>
> sudo logstash-plugin install jdbc-sqlite3 --no-verify

Does it help if you change jdbc-sqlite3 to logstash-input-sqlite ?

---

<div class="post-metadata">

**Author:** ![Brian\_Seel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_seel/32/53421_2.png) [@Brian\_Seel](https://discuss.elastic.co/u/Brian_Seel)\
**Post date:** [January 14, 2020, 5:00pm UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926/3 "2020-01-14T17:00:41Z")

</div>

I am pretty sure the logstash sqlite plugin would not do what I need. I am getting events through the input, splitting it into 50-100 separate events with a ruby filter, and then enriching the data with data from four different sqlite databases (in the same script). The logstash sqlite plugin only acts as an input filter, and wouldn't be able to handle that kind of use case, from my understanding.

I would happy to be wrong about that though.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 14, 2020, 5:57pm UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926/4 "2020-01-14T17:57:36Z")

</div>

My bad, I misunderstood the ask.

---

<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 11, 2020, 5:57pm UTC](https://discuss.elastic.co/t/cant-install-ruby-gem-into-logstash-environment/214926/5 "2020-02-11T17:57:39Z")

</div>

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