MongoDB Transport
The MongoDB Transport puts the data to the specified MongoDB database. Incoming data should be in JSON Format.
Transport (Adapter) Configuration Drop-Down List
Basic MongoDB Transport Configuration Options
On the Basic tab you can specify:
- Database – the database to be queried
- Collection – the collection to be queried
- Command – the command to use for the MongoDB operation
MongoDB Transport Basic Configuration Options
Advanced MongoDB Transport Configuration Options
On the Advanced tab you can specify:
- Callback Listener – the Listener to send the result of this transport to
- Write Concern – the write concern, which controls how MongoDB balances write speed vs content safety: Unacknowledged, Acknowledged, Journaled
- Read Preference – the read preference, which controls how MongoDB Routes read operations to the members of a replica set: Primary, Primary Preferred, Secondary, Secondary Preferred, Nearest
- Read Concern – the read concern, which controls how MongoDB handles returning data from a query: Default, Local, Majority, Linearizable
- Filter Encoding – the encoding for the JSON text used as the filter for the MongoDB operation
- Document Encoding – the encoding for the JSON text used as the document for the MongoDB operation
MongoDB Transport Advanced Configuration Options
Query/Document MongoDB Transport Configuration Options
On the Query/Document tab you can specify:
- Filter Source – the source to use for the JSON that is the filter of this MongoDB query: From Configuration, From Data, From File
- Filter File – the file to get the JSON filter query from
- Filter JSON – the JSON query to use as the filter in the MongoDB operation
- Document Source – the source to use for the JSON that is the document being sent to the MongoDB
- Document File – the file to get the JSON document to send to the MongoDB database
- Document JSON – the file to get the JSON document to send to the MongoDB database
MongoDB Transport Query/Document Configuration Options
Options MongoDB Transport Configuration Options
On the Options tab you can specify:
- Insert Is Ordered – if true, and multiple documents are inserted, they will be inserted in the order they are provided
- Update Type – the type of update operation to perform. Replace One will replace a single, entire document. Update One will perform specific update operations against a single document. Update Many will perform specific update operations against multiple documents.
- Upsert – if true, the update operation will perform an upsert, meaning it will insert the document if no matching documents are found
- Return Matched Document – if true, the document being updated/deleted will be returned upon the completion of the operation instead of a summary of the operation
- Delete Type – The type of delete operation to perform. Either delete the first found matching document or delete all matching documents.
- Bulk Write Is Ordered – if true, the bulk write will execute the operations in the order provided, and will also skip any subsequent operations if any one of them fails
MongoDB Transport Options Configuration Options
Connection MongoDB Transport Configuration Options
On the Connection tab you can specify:
- Use Shared Connection – Uses a shared connection for communicating with the MongoDB database. This is the recommended configuration because it most efficiently processes connection.
- Shared Connection Name – if shared connection is selected, this assigns the name of the connection to use
- Connection Type – uses seed list to connect: Standalone, Seed List, SRV Record
- Server Host – the host IP address of the MongoDB server
- Server Port – the port number of the MongoDB server
- Use Credentials – whether or not to use credentials when connecting to the MongoDB database
- Auth Database – the name of the database to use for authentication
- Username – the username to access the database
MongoDB Transport Connection Configuration Options (top half of screen)
- Password – the password to access the database
- Credential Protocol – the protocol to use when delivering the credentials to the MongoDB database: Auto Detect, SCRAM-SHA1 SASL, MongoDB Challenge Response, Plain SASL
- Timeout – the amount of time to wait on a MongoDB operation, in seconds
- Max Pool Size – the maximum number of connections in the connection pool
- Max Connection Idle Time – the maximum amount of time to keep an idle connection alive in the pool
- SSL Enabled – if true, SSL/TLS will be used to establish connections with the database
- SSL Allow Invalid Hostnames – if true, the MongoDB client will connect to databases where the hostname in the certificate is seen as invalid
MongoDB Transport Connection Configuration Options (bottom half of screen)