Description

The MongoDB listener plugin polls for records from a MongoDB collection and publishes them to 1Gateway.

Prerequisites

Network access to the MongoDB collection to import.

Installation

Make sure you have the Plugin zip file that has been provided to you with the installation files.

1 - Login

Login to 1gateway, and make sure you are in "Advanced mode". If this is the first time you log in, the default user and password are both 'admin' (without the quotes).

2 - System Maintenance

Click on the menu icon and choose the option "System maintenance"


3 - Upload file


In the System maintenance view you can either drag and drop the downloaded zip file or select it by clicking the "choose file" button.

Configuration


Open the main menu and click on "New plugin"

Select the plugin you want to configure. Use the Filter field if needed.


Field name

Supported values

Description

Example

MonogDB URLValid connection stringConnection string to the MongoDB databasemongodb://localhost:27017

User

Any string

MongoDB user


Password

Any string

MongoDB user's password


Expiration days

Integer

Index that sets the time to live for documents in the collection. If empty, no index is created.

182
DatabaseAny stringName of the database to connect totest
CollectionAny stringName of the collection to extract data fromusers
Message typeAny string1Gateway message type of the MongoDB recordsMongoDBRecord
Id locationAny stringID Field in the MongoDB recorduser_id
Run interval in secondsIntegerPolling interval in seconds (default is 300)120

See also