Waseem
Waseem

Reputation: 89

Loki Configuration for MongoDB storage

I was going through the loki documentation. And i came across storage section, where you can set the storage to be any DB/FileSystem/InMemory. Currently, i need to store the logs into MongoDB. How can i do it?

Loki Configuration

I don't see any configuration file to store the logs to MongoDB. Is there any reference/configuration file which could help me set these loki chunks and indexes to be stored in MongoDB?

Upvotes: 0

Views: 1602

Answers (1)

rohatgisanat
rohatgisanat

Reputation: 828

MongoDB is not supported currently. Only a certain set of DBs are supported.

Storage options in Loki

The following are supported for the index:

Single Store (boltdb-shipper) - Recommended for 2.0 and newer index store which stores boltdb index files in the object store

  • Amazon DynamoDB
  • Google Bigtable
  • Apache Cassandra
  • BoltDB (doesn’t work when clustering Loki)

The following are supported for the chunks:

  • Amazon DynamoDB
  • Google Bigtable
  • Apache Cassandra
  • Amazon S3
  • Google Cloud Storage
  • Filesystem

Upvotes: 1

Related Questions