Skip to content

Commit 0ca4a68

Browse files
authored
Merge pull request #53904 from libander/RHDEVDOCS-4420
RHDEVDOCS-4420 - Add a unique cluster name or identifier to the log record
2 parents 4ab2000 + 5fadb7b commit 0ca4a68

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Text snippet included in the following modules and assemblies:
2+
//
3+
4+
:_content-type: SNIPPET
5+
6+
Logs from any source contain a field `openshift.cluster_id`, the unique identifier of the cluster in which the Operator is deployed.
7+
8+
.ClusterID query
9+
[source,terminal]
10+
----
11+
$ oc get clusterversion/version -o jsonpath='{.spec.clusterID}{"\n"}'
12+
----

0 commit comments

Comments
 (0)