Skip to main content

MongoDB

The MongoDB provider persists logs into a MongoDB collection using Mongoose.

Config​

FieldTypeRequiredDefaultNotes
providermongodb✅ Yes—Selects the MongoDB provider.
enabledboolean❌ NotrueEnables/disables logging globally.
serviceNamestring❌ No—Saved on each log entry if set.
retentionDaysnumber❌ No—If set, old MongoDB log records are deleted daily.
uristring✅ Yes—MongoDB connection string.
schemaNamestring❌ No—Optional schema name override.