How to install Logstash mongo db plug in?

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.

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

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

Do you have a proxy that prevents direct HTTP connections?

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

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

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