How to get login attempt logs in default debug mode in OpenShift Container Platform?

Solution In Progress - Updated -

Issue

  • How to get login attempt logs in default debug mode in OpenShift Container Platform?
  • To see evidence of OpenShift logins, successful or otherwise. To do this need to raise the loglevel to 4 in /etc/sysconfig/atomic-openshift-master-api. This will also include all other logs at that level, leading to an increase in log output and hence storage required in the log system. How to get just the login attempt logs without raising debug level.
    Logs to see include:
Apr 30 13:33:58 master atomic-openshift-master-api: I0430 12:33:58.149643       1 basicauth.go:50] Login with provider "htpasswd_auth" failed for login "user"

Apr 30 13:35:09 master atomic-openshift-master-api: I0430 12:35:09.313237       1 basicauth.go:53] Login with provider "htpasswd_auth" succeeded for login "user": &user.DefaultInfo{Name:"user", UID:"xxx-xxx-xxx-xxx", Groups:[]string(nil), Extra:map[string][]string(nil)}

Environment

  • OpenShift Container Platform 3.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content