-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update logging 6.1 quick start with ViaQ - log6x-quickstart-viaq.adoc #88600
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
Closed
Closed
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,13 @@ | |
To use the default ViaQ data model, follow these steps: | ||
|
||
.Prerequisites | ||
* Cluster administrator permissions | ||
* You have access to an {product-title} cluster with `cluster-admin` permissions. | ||
* You installed the {oc-first}. | ||
* You have access to a supported object store. For example, AWS S3, Google Cloud Storage, {azure-short}, Swift, Minio, or {rh-storage}. | ||
|
||
.Procedure | ||
|
||
. Install the {clo}, {loki-op}, and {coo-first} from OperatorHub. | ||
. Install the `{clo}`, `{loki-op}`, and `{coo-first}` from OperatorHub. | ||
|
||
. Create a `LokiStack` custom resource (CR) in the `openshift-logging` namespace: | ||
+ | ||
|
@@ -55,7 +57,7 @@ $ oc create sa collector -n openshift-logging | |
+ | ||
[source,terminal] | ||
---- | ||
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector | ||
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging | ||
---- | ||
+ | ||
[NOTE] | ||
|
@@ -67,22 +69,9 @@ The `ClusterRole` resource is created automatically during the Cluster Logging O | |
+ | ||
[source,terminal] | ||
---- | ||
$ oc project openshift-logging | ||
---- | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector | ||
---- | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector | ||
---- | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector | ||
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging | ||
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging | ||
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging | ||
Comment on lines
+72
to
+74
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. The old version (commands in a separate code blocks) is correct.
|
||
---- | ||
+ | ||
[NOTE] | ||
|
@@ -146,4 +135,4 @@ The `dataModel` field is optional and left unset (`dataModel: ""`) by default. T | |
==== | ||
|
||
.Verification | ||
* Verify that logs are visible in the *Log* section of the *Observe* tab in the OpenShift web console. | ||
* Verify that logs are visible in the *Log* section of the *Observe* tab in the {product-title} web console. |
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.
Allow the collector's service account to collect logs:
--> can be updated to something like -->To collect logs, use the service account of the collector by running the following command:
I know this PR doesn't touch this line, but FYI:
Avoid using "allow": https://www.ibm.com/docs/en/ibm-style?topic=word-usage#a
https://www.ibm.com/docs/en/ibm-style?topic=grammar-possessives