Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

Appendix A. Adding a Read-only Kibana User

If you want to allow users without administrator privileges to view the collected logs and metrics, you can create a read-only kibana user. The following is an example for creating a user named user name with view (read-only) permissions.

  1. Create a new user.

      # oc create user user name
      # oc create identity allow_all: user name
      # oc create useridentitymapping allow_all: user name user name
  2. Log in to openshift-logging.

      # oc project openshift-logging
  3. Add a user role with read-only permissions.

      # oc adm policy add-role-to-user view user name
  4. Assign a password to the new user.

      # oc login --username=user name --password=password

A new read-only kibana user is created.