Skip to content

Commit 336c698

Browse files
authored
Merge pull request #76227 from smunje1/OBSDOCS-1070
/lgtm OBSDOCS-1070
2 parents 967215f + 727dc67 commit 336c698

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

modules/logging-loki-retention.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
// Module included in the following assemblies:
2-
//
3-
// logging/cluster-logging-loki.adoc
2+
//
3+
// * observability/logging/log_storage/cluster-logging-loki.adoc
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="logging-loki-retention_{context}"]
77
= Enabling stream-based retention with Loki
88

99
With Logging version 5.6 and higher, you can configure retention policies based on log streams. Rules for these may be set globally, per tenant, or both. If you configure both, tenant rules apply before global rules.
1010

11+
include::snippets/logging-retention-period-snip.adoc[]
12+
1113
[NOTE]
1214
====
1315
Although logging version 5.9 and higher supports schema v12, v13 is recommended.
1416
====
1517

16-
. To enable stream-based retention, create a `LokiStack` custom resource (CR):
18+
. To enable stream-based retention, create a `LokiStack` CR:
1719
+
1820
.Example global stream-based retention for AWS
1921
[source,yaml]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Text snippet included in the following assemblies:
2+
//
3+
// * observability/logging/log_storage/cluster-logging-loki.adoc
4+
//
5+
// Text snippet included in the following modules:
6+
//
7+
// * logging-loki-retention.adoc
8+
9+
:_mod-docs-content-type: SNIPPET
10+
11+
[IMPORTANT]
12+
====
13+
If there is no retention period defined on the s3 bucket or in the LokiStack custom resource (CR), then the logs are not pruned and they stay in the s3 bucket forever, which might fill up the s3 storage.
14+
====

0 commit comments

Comments
 (0)