|
9 | 9 | To use the default ViaQ data model, follow these steps:
|
10 | 10 |
|
11 | 11 | .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}. |
13 | 15 |
|
14 | 16 | .Procedure
|
15 | 17 |
|
16 |
| -. Install the {clo}, {loki-op}, and {coo-first} from OperatorHub. |
| 18 | +. Install the `{clo}`, `{loki-op}`, and `{coo-first}` from OperatorHub. |
17 | 19 |
|
18 | 20 | . Create a `LokiStack` custom resource (CR) in the `openshift-logging` namespace:
|
19 | 21 | +
|
@@ -55,34 +57,29 @@ $ oc create sa collector -n openshift-logging
|
55 | 57 | +
|
56 | 58 | [source,terminal]
|
57 | 59 | ----
|
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 |
59 | 61 | ----
|
60 | 62 | +
|
61 | 63 | [NOTE]
|
62 | 64 | ====
|
63 | 65 | The `ClusterRole` resource is created automatically during the Cluster Logging Operator installation and does not need to be created manually.
|
64 | 66 | ====
|
65 | 67 |
|
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: |
67 | 69 | +
|
68 | 70 | [source,terminal]
|
69 | 71 | ----
|
70 |
| -$ oc project openshift-logging |
| 72 | +$ oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging |
71 | 73 | ----
|
72 | 74 | +
|
73 | 75 | [source,terminal]
|
74 | 76 | ----
|
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 |
76 | 78 | ----
|
77 | 79 | +
|
78 | 80 | [source,terminal]
|
79 | 81 | ----
|
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 |
86 | 83 | ----
|
87 | 84 | +
|
88 | 85 | [NOTE]
|
@@ -146,4 +143,4 @@ The `dataModel` field is optional and left unset (`dataModel: ""`) by default. T
|
146 | 143 | ====
|
147 | 144 |
|
148 | 145 | .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