Skip to content

Storage

Configure the storage backend for Chronicle Server.

TypeDescription
MongoDBMongoDB (default)
PostgreSqlPostgreSQL
MsSqlMicrosoft SQL Server
SqliteSQLite (embedded, file-based)
{
"storage": {
"type": "MongoDB",
"connectionDetails": "mongodb://localhost:27017"
}
}
{
"storage": {
"type": "PostgreSql",
"connectionDetails": "Host=localhost;Port=5432;Database=chronicle;Username=chronicle;Password=secret"
}
}
{
"storage": {
"type": "MsSql",
"connectionDetails": "Server=localhost;Database=chronicle;User Id=chronicle;Password=secret;TrustServerCertificate=True"
}
}
{
"storage": {
"type": "Sqlite",
"connectionDetails": "Data Source=/data/chronicle.db"
}
}
PropertyTypeRequiredDescription
typestringYesStorage type: MongoDB, PostgreSql, MsSql, or Sqlite
connectionDetailsstringYesConnection string for the chosen storage backend