Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-2182

Separate code block required for commands in RHOL installation using CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • OpenShift 4.17 Async, OpenShift 4.18 Async, OpenShift 4.20 Freeze, OpenShift 4.19 Async
    • Logging
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Here is the current look:

      6. Assign the necessary permissions to the service account for the collector to be able to collect and forward logs. In this example, the collector is provided permissions to collect logs from both infrastructure and application logs.

      $ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z logging-collector -n openshift-logging
      $ oc adm policy add-cluster-role-to-user collect-application-logs -z logging-collector -n openshift-logging
      $ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z logging-collector -n openshift-logging 
      • Here is the updated look of the documentation:

      6. Assign the necessary permissions to the service account for the collector to be able to collect and forward logs. In this example, the collector is provided permissions to collect logs from both infrastructure and application logs.

      $ oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z logging-collector -n openshift-logging 
      $ oc adm policy add-cluster-role-to-user collect-application-logs -z logging-collector -n openshift-logging 
      $ oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z logging-collector -n openshift-logging 

      I will raise a PR for this change and merge it.

              rhn-support-pripatil Prithviraj Patil
              rhn-support-pripatil Prithviraj Patil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: