Questions on Loki and GCS retention period

Hi everyone,

We have a kubernetes cluster on GKE, we have deploy Grafana Loki + Promtail to collect all the logs of our containers. We have also configured grafana loki to store the logs (chunks) into a GCS bucket.

Now my question is about the retention period. If I did not make a mistake, with the configuration below we have configured a retention period of 24h

auth_enabled: false
chunk_store_config:
  max_look_back_period: 0s
compactor:
  shared_store: filesystem
  working_directory: /data/loki/boltdb-shipper-compactor
ingester:
  chunk_block_size: 262144
  chunk_idle_period: 3m
  chunk_retain_period: 1m
  lifecycler:
    ring:
      kvstore:
        store: inmemory
      replication_factor: 1
  max_transfer_retries: 0
limits_config:
  enforce_metric_name: false
  reject_old_samples: true
  reject_old_samples_max_age: 168h
schema_config:
  configs:
    - from: 2020-07-01
      store: boltdb-shipper
      object_store: gcs
      schema: v11
      index:
        prefix: index_
        period: 24h
server:
  http_listen_port: 3100
storage_config:
  boltdb_shipper:
    active_index_directory: /data/loki/boltdb-shipper-active
    cache_location: /data/loki/boltdb-shipper-cache
    cache_ttl: 24h
    shared_store: gcs
  gcs:
    bucket_name: k8s-monitoring-loki
table_manager:
  retention_deletes_enabled: true
  retention_period: 24h

But when I check now the content of my GCS bucket nothing is delete. Is this normal?

Thanks you for your help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.