Migrate from filesystem boltdb to object storage boltdb_shipper

243 views
Skip to first unread message

Juho Saarinen

unread,
Apr 19, 2021, 1:03:31 AM4/19/21
to lokiproject
Hi,

My situation is, that we had old Loki setup like:
- from: 2020-01-01 # Some date in the past
  index:
    prefix: index_
    period: 48h
  object_store: filesystem
  schema: v11
  store: boltdb
I moved all chunks to object storage, and made new schema configuration to start collecting data to new indices:
- from: 2020-04-19 
  index:
    prefix: index_
    period: 24h
  object_store: gcs
  schema: v11
  store: boltdb-shipper
Issue is, that old logs are not searchable anymore. Is there some way to migrate old indices to boltdb-shipper format, or are those just going to be unavailable? Or boltdb-shipper to go through all chunks to build the indices for all.

I tried to change first index store and object store to gcs/boltdb-shipper, but loki just tells in log that table manager is creating table for those old indices, but nothing more.

Br,
Juho
Reply all
Reply to author
Forward
0 new messages