Installing Mongodb input plugin in Logstash

You can investigate using JBDC. There are some non-free 3rd party jars from some integrations vendors.

Then you might be able to use the JDBC input.

Other alternatives:

  • Create a MongoDB http server and use the http_poller input to fetch records over http.
  • Use mongoexport to a JSON or CSV file.