You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove whole-stream-deletion mode
Signed-off-by: Michel Hollands <[email protected]>
* Remove whole-stream-deletion from docs
Signed-off-by: Michel Hollands <[email protected]>
* Update the changelog
Signed-off-by: Michel Hollands <[email protected]>
* Sort changelog entries
Signed-off-by: Michel Hollands <[email protected]>
* Remove link to wrong configuration
Signed-off-by: Michel Hollands <[email protected]>
* Fix integration test
Signed-off-by: Michel Hollands <[email protected]>
* Set default deletion mode to disabled
Signed-off-by: Michel Hollands <[email protected]>
* Remove extra white line in documentation
Signed-off-by: Michel Hollands <[email protected]>
* Fix default value in docs
Signed-off-by: Michel Hollands <[email protected]>
* Fix changelog
Signed-off-by: Michel Hollands <[email protected]>
* Add DeletionEnabled method on mode
Signed-off-by: Michel Hollands <[email protected]>
* Rename test
Signed-off-by: Michel Hollands <[email protected]>
Copy file name to clipboardExpand all lines: docs/sources/operations/storage/logs-deletion.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ Log entry deletion is supported _only_ for the BoltDB Shipper index store.
9
9
Grafana Loki supports the deletion of log entries from a specified stream.
10
10
Log entries that fall within a specified time window and match an optional line filter are those that will be deleted.
11
11
12
-
13
12
The Compactor component exposes REST endpoints that process delete requests.
14
13
Hitting the endpoint specifies the streams and the time window.
15
14
The deletion of the log entries takes place after a configurable cancellation time period expires.
@@ -18,9 +17,8 @@ Log entry deletion relies on configuration of the custom logs retention workflow
18
17
19
18
## Configuration
20
19
21
-
Enable log entry deletion by setting `retention_enabled` to true and `deletion_mode` to `whole-stream-deletion`, `filter-only`, or `filter-and-delete` in the compactor's configuration. See the example in [Retention configuration](../retention#retention-configuration).
20
+
Enable log entry deletion by setting `retention_enabled` to true and `deletion_mode` to `filter-only` or `filter-and-delete` in the compactor's configuration.
22
21
23
-
With `whole-stream-deletion`, all the log entries matching the query given in the delete request are removed.
24
22
With `filter-only`, log lines matching the query in the delete request are filtered out when querying Loki. They are not removed from the on-disk chunks.
25
23
With `filter-and-delete`, log lines matching the query in the delete request are filtered out when querying Loki, and they are also removed from the on-disk chunks.
f.IntVar(&cfg.RetentionDeleteWorkCount, "boltdb.shipper.compactor.retention-delete-worker-count", 150, "The total amount of worker to use to delete chunks.")
88
88
f.DurationVar(&cfg.DeleteRequestCancelPeriod, "boltdb.shipper.compactor.delete-request-cancel-period", 24*time.Hour, "Allow cancellation of delete request until duration after they are created. Data would be deleted only after delete requests have been older than this duration. Ideally this should be set to at least 24h.")
89
89
f.IntVar(&cfg.MaxCompactionParallelism, "boltdb.shipper.compactor.max-compaction-parallelism", 1, "Maximum number of tables to compact in parallel. While increasing this value, please make sure compactor has enough disk space allocated to be able to store and compact as many tables.")
90
-
f.StringVar(&cfg.DeletionMode, "boltdb.shipper.compactor.deletion-mode", "whole-stream-deletion", fmt.Sprintf("(Experimental) Deletion mode. Can be one of %v", strings.Join(deletion.AllModes(), "|")))
90
+
f.StringVar(&cfg.DeletionMode, "boltdb.shipper.compactor.deletion-mode", "disabled", fmt.Sprintf("Deletion mode. Can be one of %v", strings.Join(deletion.AllModes(), "|")))
f.BoolVar(&cfg.RunOnce, "boltdb.shipper.compactor.run-once", false, "Run the compactor one time to cleanup and compact index files only (no retention applied)")
0 commit comments