MongoDB
Capture change stream events from your MongoDB Deployment
Your mongo deployment must be running as a replica set or sharded cluster to support change stream events.
Batch supports easy ingestion of MongoDB change streams via our CLI utility plumber. No additional configuration in your mongo deployment is required. Simply run plumber in relay mode via the binary or the docker container
You may relay events from your entire mongo deployment, a specific database, or a specific collection.
To relay changes from your entire mongo cluster, OMIT the following variables:
PLUMBER_RELAY_CDCMONGO_DATABASE
PLUMBER_RELAY_CDCMONGO_COLLECTION
To relay changes from a specific database, specify ONLY the following variable
PLUMBER_RELAY_CDCMONGO_DATABASE
To relay changes from a specific collection of a database, specify these two variables
PLUMBER_RELAY_CDCMONGO_DATABASE
PLUMBER_RELAY_CDCMONGO_COLLECTION
Relay via plumber docker container
Relay via plumber binary
View events in your Batch collection
Change events should start appearing in your batch collection within seconds of them being made in your Mongo deployment.
Last updated