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
mongoexportto a JSON or CSV file.