Skip to content

Commit d018bfb

Browse files
authored
Merge pull request #90593 from prithvipatil97/patch-42
Update logging 6.1 quick start with ViaQ - log6x-quickstart-viaq.adoc
2 parents 1ef167f + 7ac9f7d commit d018bfb

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

modules/log6x-quickstart-viaq.adoc

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
To use the default ViaQ data model, follow these steps:
1010

1111
.Prerequisites
12-
* Cluster administrator permissions
12+
* You have access to an {product-title} cluster with `cluster-admin` permissions.
13+
* You installed the {oc-first}.
14+
* You have access to a supported object store. For example, AWS S3, Google Cloud Storage, {azure-short}, Swift, Minio, or {rh-storage}.
1315
1416
.Procedure
1517

16-
. Install the {clo}, {loki-op}, and {coo-first} from OperatorHub.
18+
. Install the `{clo}`, `{loki-op}`, and `{coo-first}` from OperatorHub.
1719

1820
. Create a `LokiStack` custom resource (CR) in the `openshift-logging` namespace:
1921
+
@@ -55,34 +57,29 @@ $ oc create sa collector -n openshift-logging
5557
+
5658
[source,terminal]
5759
----
58-
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector
60+
$ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging
5961
----
6062
+
6163
[NOTE]
6264
====
6365
The `ClusterRole` resource is created automatically during the Cluster Logging Operator installation and does not need to be created manually.
6466
====
6567

66-
. Allow the collector's service account to collect logs:
68+
. To collect logs, use the service account of the collector by running the following commands:
6769
+
6870
[source,terminal]
6971
----
70-
$ oc project openshift-logging
72+
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging
7173
----
7274
+
7375
[source,terminal]
7476
----
75-
$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector
77+
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging
7678
----
7779
+
7880
[source,terminal]
7981
----
80-
$ oc adm policy add-cluster-role-to-user collect-audit-logs -z collector
81-
----
82-
+
83-
[source,terminal]
84-
----
85-
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector
82+
$ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging
8683
----
8784
+
8885
[NOTE]
@@ -146,4 +143,4 @@ The `dataModel` field is optional and left unset (`dataModel: ""`) by default. T
146143
====
147144

148145
.Verification
149-
* Verify that logs are visible in the *Log* section of the *Observe* tab in the OpenShift web console.
146+
* Verify that logs are visible in the *Log* section of the *Observe* tab in the {product-title} web console.

0 commit comments

Comments
 (0)