-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OBSDOCS-1982: Transfer UIPlugin content to standalone #94438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gabriel-rh
merged 1 commit into
openshift:standalone-logging-docs-main
from
theashiot:OBSDOCS-1982
Jul 23, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * installing/installing-logging.adoc | ||
|
|
||
| :_newdoc-version: 2.18.4 | ||
| :_template-generated: 2025-04-18 | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="installing-the-logging-ui-plugin-cli_{context}"] | ||
| = Installing the logging UI plugin by using the CLI | ||
|
|
||
| Install the logging UI plugin by using the command-line interface (CLI) so that you can visualize logs. | ||
|
|
||
| .Prerequisites | ||
| * You have administrator permissions. | ||
| * You installed the {oc-first}. | ||
| * You installed and configured {loki-op}. | ||
|
|
||
| .Procedure | ||
| . Install the {coo-full}. For more information, see link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/cluster_observability_operator/installing-cluster-observability-operators[Installing the Cluster Observability Operator]. | ||
|
|
||
| . Create a `UIPlugin` custom resource (CR): | ||
| + | ||
| .Example `UIPlugin` CR | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: observability.openshift.io/v1alpha1 | ||
| kind: UIPlugin | ||
| metadata: | ||
| name: logging # <1> | ||
| spec: | ||
| type: Logging # <2> | ||
| logging: | ||
| lokiStack: | ||
| name: logging-loki # <3> | ||
| logsLimit: 50 | ||
| timeout: 30s | ||
| schema: otel # <4> | ||
| ---- | ||
| <1> Set `name` to `logging`. | ||
| <2> Set `type` to `Logging`. | ||
| <3> The `name` value must match the name of your LokiStack instance. If you did not install LokiStack in the `openshift-logging` namespace, set the LokiStack namespace under the `lokiStack` configuration. | ||
| <4> `schema` is one of `otel`, `viaq`, or `select`. The default is `viaq` if no value is specified. When you choose `select`, you can select the mode in the UI when you run a query. | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| These are the known issues for the logging UI plugin - for more information, see link:https://issues.redhat.com/browse/OU-587[OU-587]. | ||
|
|
||
| * The `schema` feature is only supported in {product-title} 4.15 and later. In earlier versions of {product-title}, the logging UI plugin will only use the `viaq` attribute, ignoring any other values that might be set. | ||
| * Non-administrator users cannot query logs using the `otel` attribute with {logging} {for} versions 5.8 to 6.2. This issue will be fixed in a future {logging} release. (https://issues.redhat.com/browse/LOG-6589[LOG-6589]) | ||
| * In {logging} {for} version 5.9, the `severity_text` Otel attribute is not set. | ||
| ==== | ||
|
|
||
| . Apply the `UIPlugin` CR object by running the following command: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc apply -f <filename>.yaml | ||
| ---- | ||
|
|
||
| .Verification | ||
|
|
||
| . Access the {product-title} web console, and refresh the page if 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * installing/installing-logging.adoc | ||
|
|
||
| :_newdoc-version: 2.18.4 | ||
| :_template-generated: 2025-04-18 | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="installing-the-logging-ui-plugin_gui{context}"] | ||
| = 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 {product-title} web console. | ||
| * You installed and configured {loki-op}. | ||
|
|
||
| .Procedure | ||
| . Install the {coo-full}. For more information, see link:https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/cluster_observability_operator/installing-cluster-observability-operators[Installing the Cluster Observability Operator]. | ||
|
|
||
| . Navigate to the *Installed Operators* page. Under *Provided APIs*, select *ClusterObservabilityOperator*. Find the `UIPlugin` resource and click *Create Instance*. | ||
|
|
||
| . Select the YAML view, and then use the following template to create a `UIPlugin` custom resource (CR): | ||
| + | ||
| .Example `UIPlugin` CR | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: observability.openshift.io/v1alpha1 | ||
| kind: UIPlugin | ||
| metadata: | ||
| name: logging # <1> | ||
| spec: | ||
| type: Logging # <2> | ||
| logging: | ||
| lokiStack: | ||
| name: logging-loki # <3> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment about schema here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| logsLimit: 50 | ||
| timeout: 30s | ||
| schema: otel # <4> | ||
| ---- | ||
| <1> Set `name` to `logging`. | ||
| <2> Set `type` to `Logging`. | ||
| <3> The `name` value must match the name of your LokiStack instance. If you did not install LokiStack in the `openshift-logging` namespace, set the LokiStack namespace under the `lokiStack` configuration. | ||
| <4> `schema` is one of `otel`, `viaq`, or `select`. The default is `viaq` if no value is specified. When you choose `select`, you can select the mode in the UI when you run a query. | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| These are the known issues for the logging UI plugin - for more information, see link:https://issues.redhat.com/browse/OU-587[OU-587]. | ||
|
|
||
| * The `schema` feature is only supported in {product-title} 4.15 and later. In earlier versions of {product-title}, the logging UI plugin will only use the `viaq` attribute, ignoring any other values that might be set. | ||
| * Non-administrator users cannot query logs using the `otel` attribute with {logging} {for} versions 5.8 to 6.2. This issue will be fixed in a future {logging} release. (https://issues.redhat.com/browse/LOG-6589[LOG-6589]) | ||
| * In {logging} {for} version 5.9, the `severity_text` Otel 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. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to update with schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done