This documentation is for WSO2 Identity Server 5.3.0 . View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

skHbvcjlkThis feature enables to specify the required claims to be logged in audit logs.

Follow the steps given below in order to configure this feature. 

Make the following changes in the identitiy.xml file in <CARBON_HOME>/repository/conf/identity to enable the audit logger.

  1. Add the following entry within <EventListeners> to enable the listener. 

    Code Block
    <EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener"
    name="org.wso2.carbon.user.mgt.listeners.UserClaimsAuditLogger"
    orderId="9" enable="true"/>
  2. Before the </Server> element, add the following entry to define the claims that should be logged into the audit log.

    Code Block
    <LoggableUserClaims>
            <LoggableUserClaim>http://wso2.org/claims/identity/accountLocked</LoggableUserClaim>
            <LoggableUserClaim>http://wso2.org/claims/role</LoggableUserClaim>
        </LoggableUserClaims>
    Note

    In the above configuration, you can define any claim available in the http://wso2.org/claims dialect as a LoggableUserClaim. The accountLocked and role claims have been used here only as examples.

    On making the above mentioned changes, claims will be logged into the audit.log file in <IS_HOME>/repository/log.