Logs from any source contain a field openshift.cluster_id
, the unique identifier of the cluster in which the Operator is deployed.
ClusterID query
$ oc get clusterversion/version -o jsonpath='{.spec.clusterID}{"\n"}'
Logs from any source contain a field openshift.cluster_id
, the unique identifier of the cluster in which the Operator is deployed.
$ oc get clusterversion/version -o jsonpath='{.spec.clusterID}{"\n"}'