yalp.outputs.mongoΒΆ
The mongo outputer sends events to a mongo collection. Each event is recorded as a new document in the collection.
Warning
This requires the pymongo pacakge to be installed.
This outputer supports the following configuration items:
- uri
- The mongodb connection uri. Formatted as
mongodb://[user:password@]<host>[:port]/[auth_database] - database
- The database name to store the documents.
- collection
- The collection name.
- type
- A type filter. Only output events of this type.
Example configuration.
outputs:
- mongo:
uri: 'mongodb://localhost:27017/yalp'
database: yalp
collection: logs