1.4. Migrating logging visualization
The OpenShift console UI plugin for log visualization is moved to the Cluster Observability Operator from the Cluster Logging Operator.
1.4.1. Deleting the logging view plugin リンクのコピーリンクがクリップボードにコピーされました!
When updating from Logging 5 to Logging 6, delete the logging view plugin before installing the UIPlugin.
Prerequisites
- You have administrator permissions.
-
You installed the OpenShift CLI (
oc).
Procedure
Delete the logging view plugin by running the following command:
$ oc get consoleplugins logging-view-plugin && oc delete consoleplugins logging-view-plugin
1.4.2. Installing the logging UI plugin by using the web console リンクのコピーリンクがクリップボードにコピーされました!
Install the logging UI plugin by using the web console so that you can visualize logs.
Prerequisites
- You have administrator permissions.
- You have access to the OpenShift Container Platform web console.
- You installed and configured Loki Operator.
Procedure
- Install the Cluster Observability Operator. For more information, see Installing the Cluster Observability Operator.
-
Navigate to the Installed Operators page. Under Provided APIs, select ClusterObservabilityOperator. Find the
UIPluginresource and click Create Instance. Select the YAML view, and then use the following template to create a
UIPlugincustom resource (CR):Example
UIPluginCRapiVersion: observability.openshift.io/v1alpha1 kind: UIPlugin metadata: name: logging1 spec: type: Logging2 logging: lokiStack: name: logging-loki3 logsLimit: 50 timeout: 30s schema: otel4 - 1
- Set
nametologging. - 2
- Set
typetoLogging. - 3
- The
namevalue must match the name of your LokiStack instance. If you did not install LokiStack in theopenshift-loggingnamespace, set the LokiStack namespace under thelokiStackconfiguration. - 4
schemais one ofotel,viaq, orselect. The default isviaqif no value is specified. When you chooseselect, you can select the mode in the UI when you run a query.
注記These are the known issues for the logging UI plugin - for more information, see OU-587.
-
The
schemafeature is only supported in OpenShift Container Platform 4.15 and later. In earlier versions of OpenShift Container Platform, the logging UI plugin will only use theviaqattribute, ignoring any other values that might be set. -
Non-administrator users cannot query logs using the
otelattribute with logging for Red Hat OpenShift versions 5.8 to 6.2. This issue will be fixed in a future logging release. (LOG-6589) -
In logging for Red Hat OpenShift version 5.9, the
severity_textOtel attribute is not set.
- Click Create.
Verification
- Refresh the page when a pop-up message instructs you to do so.
-
Navigate to the Observe
Logs panel, where you can run LogQL queries. You can also query logs for individual pods from the Aggregated Logs tab of a specific pod.