For AI agents: a documentation index is available at https://www.mongodb.com/es/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Output Format Properties
Overview
Use the following configuration settings to specify the format of data the MongoDB Kafka source connector publishes to Kafka topics.
Description: Specifies which data format the source connector outputs the key
document.
Default: json Accepted Values: bson, json, schema
output.format.value
Type: string
Description: Specifies which data format the source connector outputs the value
document.
The connector supports Protobuf as an
output data format. You can enable this format by specifying the
schema value and installing and configuring the Kafka Connect Protobuf
Converter.
Default: json Accepted Values: bson, json, schema
output.json.formatter
Type: string
Description: Class name of the JSON formatter the connector should use to
output data.
Description: Whether the connector should infer the schema for the value
document of the SourceRecord.
Since the connector processes each document in isolation, the
connector may generate many schemas.
IMPORTANT: The connector only reads this setting when you set your
output.format.value setting to schema.