第57章 MongoDB Source


Consume data from MongoDB.

If you enable the persistentTailTracking property, the consumer keeps track of the last consumed message and, on the next restart, the consumption restarts from that message. If you enable persistentTailTracking, you must provide a value for the tailTrackIncreasingField property (by default it is optional).

If you disable the persistentTailTracking property, the consumer consumes the whole collection and waits in idle for new data to consume.

The collection that provides the data must be a capped collection.

57.1. Configuration Options

The following table summarizes the configuration options available for the mongodb-source Kamelet:

Expand
PropertyNameDescriptionTypeDefaultExample

collection *

MongoDB Collection

The name of the MongoDB collection to bind to this endpoint.

string

  

database *

MongoDB Database

The name of the MongoDB database.

string

  

hosts *

MongoDB Hosts

A comma-separated list of MongoDB host addresses in host:port format.

string

  

password

MongoDB Password

The user password for accessing MongoDB.

string

  

persistentTailTracking

MongoDB Persistent Tail Tracking

Specifies to enable persistent tail tracking, which is a mechanism to keep track of the last consumed data across system restarts. The next time the system is up, the endpoint recovers the cursor from the point where it last stopped consuimg data. This option will only work on capped collections.

boolean

False

 

ssl

Enable Ssl for Mongodb Connection

whether to enable ssl connection to mongodb

boolean

True

 

sslValidationEnabled

Enables Ssl Certificates Validation and Host name checks.

IMPORTANT this should be disabled only in test environment since can pose security issues.

boolean

True

 

tailTrackIncreasingField

MongoDB Tail Track Increasing Field

The correlation field in the incoming data which is of increasing nature and is used to position the tailing cursor every time it is generated.

string

  

username

MongoDB Username

The username for accessing MongoDB. The username must be present in the MongoDB’s authentication database (authenticationDatabase). By default, the MongoDB authenticationDatabase is 'admin'.

string

  

* = Fields marked with an asterisk are mandatory.

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る