Configuring security logging
Configure comprehensive security logging in logback.xml that records user activity within OpsCenter.
Configure comprehensive security logging in logback.xml that
records user activity within OpsCenter, such as:
- Creating or deleting users and roles
- Adding or deleting users from roles
- Changing permissions for a role
- Resetting user passwords
- Logging in attempts both successful and unsuccessful
In addition, all login attempts that are anonymous or admin binds with regard to LDAP authentication are also logged. Therefore, comparisons between the OpsCenter authentication logging and LDAP logs should match exactly.
For more information, see OpsCenter logback.xml configuration.
logback.xml
The location of the logback.xml file depends on the type of installation:
- Package installations: /etc/opscenter/logback.xml
- Tarball installations: install_location/conf/logback.xml
Procedure
Example
2016-04-07 21:42:16,664 [] Login failure user: foo (MainThread)
2016-04-07 21:42:16,664 [] Login failure user: foo =={"event": "login-failure", "user": "foo", "opsc-initiated": false, "ip": "0:0:0:0:0:0:0:1"}== (MainThread)