Skip to main content
Version: 2.3.0

MongoDB

MongoDB sink connector

Description

Write data to MongoDB

Key features

Options

nametyperequireddefault value
uristringyes-
databasestringyes-
collectionstringyes-
common-optionsconfigno-

uri [string]

uri to write to mongoDB

database [string]

database to write to mongoDB

collection [string]

collection to write to mongoDB

common options

Sink plugin common parameters, please refer to Sink Common Options for details

Example

mongodb {
uri = "mongodb://username:password@127.0.0.1:27017/mypost?retryWrites=true&writeConcern=majority"
database = "mydatabase"
collection = "mycollection"
}

Changelog

2.2.0-beta 2022-09-26

  • Add MongoDB Sink Connector