Mongodb input plugin for logstash


(Siva Puvvada) #1

Anyone could you please provide me the link to download mongoDB input plugin for logstash


(Magnus Bäck) #2

Installing it like a standard plugin doesn't work? See https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html.

If not, try downloading the most recent gem file from https://github.com/phutchins/logstash-input-mongodb and install it according to the instructions in the README file.


(Siva Puvvada) #3

Hi Magnusbaeck ,

Thank you for your reply .

I downloaded the zip from git and try to install plugin but got below errors as server don't have capability to connect to internet

Ignoring ffi-1.9.13 because its extensions are not built. Try: gem pristine ffi --version 1.9.13
Validating /tmp/logstash-input-mongodb-master/logstash-input-mongodb-0.3.0.gem
Installing logstash-input-mongodb
fatal: Not a git repository (or any of the parent directories): .git
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/

Is there anyway to download all the gems required for this installation or do we have any zip file for all the gem dependencies


(Siva Puvvada) #4

Hi Magnus ,
Any update ?


(Magnus Bäck) #5

I don't know enough about this to answer off the cuff and I don't have time to start digging myself.


(Siva Puvvada) #6

Hi ,

I have fixed the issue , but still having some conneciton issues as per this link

I dont see any username and password

mongodb {
uri => 'mongodb://10.0.0.30/my-logs?ssl=true'
placeholder_db_dir => '/opt/logstash-mongodb/'
placeholder_db_name => 'logstash_sqlite.db'
collection => 'events_'
batch_size => 5000
}

where i need to give username and password here


(Siva Puvvada) #7

I fixed the issue by changing the uri

Thank you for your help .. I am good now


(Manoj Kumar) #8

Can you please explain how did you solve this connection issue?