Overview
MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.
Prerequisites
- Logsign 6.4.10+ versions support this integration.
Configure On Logsign
- Login to your Logsign UI.
- Click Settings > Data Collection > +Device.
- Define the settings as follows:
- Select the MongoDB.
- Host: Define the host of the MongoDB to be integrated with Logsign.
- Username: Define the username.
- Password: Define the password.
- Database: Define the database.
- Authentication Database:The name of the database to which the user you defined for retrieving logs has access. If you are using a user with root privileges, you can specify any database.
- Collection: Define the collection.
- Click the Check Connection button.
- Define the settings are completed as follows:
- Position Column: The selected column here tracks a column that Logsign will use to avoid retrieving duplicate logs. This can be an object ID or a timestamp. For the example database, a column for the time example can be written as follows.
Example 1 - Time Position:
In a collection with a time column, the field type only supports the ISODATE format.
Example database:
Logsign:
Example 2 - ObjectID Position:
If you want to use the default `_id` column provided by MongoDB, you can proceed as follows.
Example database:
Logsign:
- Period: Specify the period.
- Data Policy: If you have a Data Policy to add for the source, please add it.
- Check Health: If there is a Health Check Period you want to define, click Check Health.
- Device Name: Define the Device Name.
- Tags: If you want to add any tags, please define it.
- Roles: If you want to specify any roles, please select it.
- Click the Save button.