How to install Logstash mongo db plug in?


(Rlv Praveen) #1

Hi team,

I have a configuration in which after parsing my data i want to send the data to mongo db. But i am getting the error as
:reason=>"Couldn't find any output plugin named
** 'mongodb'. Are you sure this is correct? Trying to load the mongodb output plug**
in resulted in this error: no such file to load -- logstash/outputs/mongodb", :l
evel=>:error}←[0m
The signal HUP is in use by the JVM and will not work correctly on this platform.

I am using "logstash-2.4.1" and java 7.
Any help would be appreciated. Thanks.


(Magnus Bäck) #2

Have you installed the plugin by running the command listed at the top of the documentation?

https://www.elastic.co/guide/en/logstash/2.4/plugins-outputs-mongodb.html


(Rlv Praveen) #3

Thanks for the reply. Yes i did it but it is not installing PFB error after running the command--
C:\logstash-2.4.1\bin>logstash-plugin install logstash-output-mongodb
Validating logstash-output-mongodb
Unable to download data from https://rubygems.org - Errno::ECONNREFUSED: Connect
ion refused - Connection refused (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-mongodb


(Magnus Bäck) #4

Do you have a proxy that prevents direct HTTP connections?


(Rlv Praveen) #5

Yes we do have a proxy.
How to pass the proxy and add the plug-in?


(Magnus Bäck) #6

https://www.elastic.co/guide/en/logstash/2.4/working-with-plugins.html#proxy-plugins


(system) #7

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