Skip to content

Commit 65a71eb

Browse files
committed
RHDEVDOCS-2730
Update oc get cronjob example
1 parent c61b139 commit 65a71eb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

modules/cluster-logging-elasticsearch-retention.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[id="cluster-logging-elasticsearch-retention_{context}"]
66
= Configuring log retention time
77

8-
You can specify how long the default Elasticsearch log store keeps indices using a separate _retention policy_ for each of the three log sources: infrastructure logs, application logs, and audit logs. The retention policy, which you configure using the `maxAge` parameter in the Cluster Logging custom resource (CR), is considered for the Elasticsearch roll over schedule and determines when Elasticsearch deletes the rolled-over indices.
8+
You can specify how long the default Elasticsearch log store keeps indices using a separate _retention policy_ for each of the three log sources: infrastructure logs, application logs, and audit logs. The retention policy, which you configure using the `maxAge` parameter in the Cluster Logging custom resource (CR), is considered for the Elasticsearch roll over schedule and determines when Elasticsearch deletes the rolled-over indices.
99

1010
Elasticsearch rolls over an index, moving the current index and creating a new
1111
index, when an index matches any of the following conditions:
@@ -113,17 +113,15 @@ mapping using the defined policy, scheduled using the `pollInterval`.
113113
+
114114
[source,terminal]
115115
----
116-
$ oc get cronjobs
116+
$ oc get cronjob
117117
----
118118
+
119119
.Example output
120120
[source,terminal]
121121
----
122-
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
123-
elasticsearch-delete-app */15 * * * * False 0 <none> 27s
124-
elasticsearch-delete-audit */15 * * * * False 0 <none> 27s
125-
elasticsearch-delete-infra */15 * * * * False 0 <none> 27s
126-
elasticsearch-rollover-app */15 * * * * False 0 <none> 27s
127-
elasticsearch-rollover-audit */15 * * * * False 0 <none> 27s
128-
elasticsearch-rollover-infra */15 * * * * False 0 <none> 27s
122+
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
123+
curator */10 * * * * False 0 <none> 5s
124+
elasticsearch-im-app */15 * * * * False 0 <none> 4s
125+
elasticsearch-im-audit */15 * * * * False 0 <none> 4s
126+
elasticsearch-im-infra */15 * * * * False 0 <none> 4s
129127
----

0 commit comments

Comments
 (0)