In compacter, “retention_enabled: true” & under limits_config “retention_period: 336h”. But in grafana, I am not able to see older logs like 1 or 2 days logs.
I am I missing any configuration specific to retention?
Looks like you are running Loki with filesystem storage. Have you checked and made sure index files and chunks are being written to your filesystem storage? Any error from querier?
Also your configuration is not structured, a bit hard to read.
I see the files are available. But however the loading part is failing, as I can see from querier logs.
Error: level=error ts=2024-09-03T13:15:52.02135439Z caller=batch.go:726 org_id=fake traceID=45ce8c25b39bd51a msg=“error fetching chunks” err=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=: no such file or directory”
level=error ts=2024-09-03T13:15:52.421916486Z caller=batch.go:726 org_id=fake traceID=28e1ac7f2e79b075 msg=“error fetching chunks” err=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=: no such file or directory”
level=error ts=2024-09-03T13:15:52.423324215Z caller=errors.go:26 org_id=fake traceID=28e1ac7f2e79b075 message=“closing iterator” error=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=: no such file or directory”
level=error ts=2024-09-03T13:15:53.244392222Z caller=batch.go:726 org_id=fake traceID=45ce8c25b39bd51a msg=“error fetching chunks” err=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdlMTg0Zjg6MTkxYjdmMzNlNDk6YjhlNGE1OTA=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdlMTg0Zjg6MTkxYjdmMzNlNDk6YjhlNGE1OTA=: no such file or directory”
level=error ts=2024-09-03T13:15:53.490375766Z caller=batch.go:726 org_id=fake traceID=45ce8c25b39bd51a msg=“error fetching chunks” err=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=: no such file or directory”
level=error ts=2024-09-03T13:15:54.444427029Z caller=batch.go:726 org_id=fake traceID=45ce8c25b39bd51a msg=“error fetching chunks” err=“failed to load chunk ‘fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=’: open /bitnami/grafana-loki/chunks/fake/2b5070ecfea7208a/MTkxYjdmMzNlNDk6MTkxYjgwNWI0NTU6ZWRiNTlhMmQ=: no such file or directory”
That’s only a limitation if you were using helm chart for your deployment. If you are, then yes I would say for a single instance you do not want to use the helm chart.