Loki Helm Chart retention isn't working

I’m trying to deploy a loki helm chart, using Argocd, in the loki helm configuration values I’m using the 24h log retention setting. I am using Ceph RBD as persistent storage.The Helm chart values in the configuration file located at /etc/loki/config/config.yml on the loki-0 pod appear to be applied correctly, but log retention isn’t taking effect. What could be the issue?

 source:
    repoURL: https://grafana.github.io/helm-charts
    chart: loki
    targetRevision: 5.30.0
    helm:
      releaseName: loki
      values: |
        limits_config:
            retention_period: 24h
        tableManager:
          retention_deletes_enabled: true
          retention_period: 24h
        compactor:
          retention_enabled: true
          shared_storage: filesystem
          working_directory: /var/loki/compactor
        loki:
          auth_enabled: false
          commonConfig:
            replication_factor: 1
          storage:
            type: filesystem 
          limits_config:
            retention_period: 24h
        singleBinary:
          replicas: 1
        global:
          clusterDomain: cluster.local
          dnsNamespace: kube-system
          dnsService: rke2-coredns-rke2-coredns

Any updates on this?

I am struggling with the same issue. The only solution I found is to disable table manager and enable compactor, but this requires significant changes to the helm chart configuration…

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