
Log retention | Grafana Loki documentation
Jul 31, 2020 · Retention in Grafana Loki is achieved through the Compactor. By default the compactor.retention-enabled flag is not set, so the logs sent to Loki live forever. If you have a …
Enabling Log Retention in Loki with Compactor - Medium
Dec 3, 2024 · By enabling and configuring the compactor, you can automate log deletion and maintain a sustainable log storage strategy. Ensure the compactor is enabled in your /etc/loki/config.yml file:...
why my Loki log retention is not working? - Stack Overflow
Jul 27, 2022 · Grafana Loki Storage Retention. By default, when table_manager.retention_deletes_enabled or compactor.retention_enabled flags are not set, then logs sent to Loki live forever. The minimum retention period is 24h. The retention period must be a multiple of the index and chunks table period, configured in …
The essential config settings you should use so you won’t drop logs in Loki
Feb 16, 2021 · By buffering logs in memory before flushing them, Loki de-amplifies writes to our object storage, gaining both performance and cost reduction benefits. Here are a few configuration settings in the ingester_config that are important to maintain Loki’s uptime and durability guarantees.
Grafana Loki Architecture: A Comprehensive Guide - DevOpsCube
5 days ago · The default retention period of logs is 24 hours, the minimum period is 1 hour and can be extended up to a maximum period of 30 days. Loki scales horizontally and has its query language LogQL.
loki/docs/sources/operations/storage/retention.md at main - GitHub
Streams that have the namespace label prod will have a retention period of 336h (2 weeks), even if the container label is loki, since the priority of the prod rule is higher.
Loki retention - chunks count&space usage too high
Apr 4, 2023 · Retention period is configured under limits_config, see Retention | Grafana Loki documentation. Table manager is no longer needed if you run compactor, you can disable it like so: table_manager: retention_deletes_enabled: false retention_period: 0s
How Grafana Loki retention works
Jun 26, 2022 · I would like to set up retention for logs stored in Grafana Loki and I am not sure how the retention really works. There is more period time to configure and from documentation, it is not so clear to understand how whole process of retention works. This is my Loki configuration: common: instance_interface_names: - "lo" path_prefix: /loki storage:
Best way to configure storage retention with Loki + S3
Aug 19, 2022 · I am using Loki v2.4.2 and have configured S3 as a storage backend for both index and chunk. I want to ensure that all logs older than 90 days are deleted without risk of corruption.
Retention period for different log stream - Grafana Loki - Grafana …
Oct 11, 2024 · You can absolutely manage retention policy from Loki. You should want to use compactor instead of table manager (see Log retention | Grafana Loki documentation), and if you are not at a version where compactor is recommended you should consider upgrading as well.
- Some results have been removed