Can't install ruby gem into logstash environment

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?

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

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.

My bad, I misunderstood the ask.

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