Skip to main content

Audit logs

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Audit logs in WSO2 Identity Platform are designed for developers to access and analyze vital state changes that happen to resources in WSO2 Identity Platform. These logs are important for enhancing system security as they proactively identify suspicious activities and potential security threats.

In the event of incidents or errors, audit logs serve as a valuable forensic tool, facilitating the investigation process by providing detailed insights into the sequence of events and identifying the responsible parties.

This guide provides instructions on how to access and analyze audit logs to monitor and investigate system activities effectively.

Access audit logs​

To access audit logs:

  1. On the WSO2 Identity Platform Console, go to Log

  2. Switch to the Audit tab.

    Audit logs UI

By default, the console displays logs that occurred in the last 15 minutes.

Search for logs​

You can use the search bar to search for logs based on the properties of an audit log. For example, initiatorType, targetType, actionId, etc. Learn more about these parameters in the structure of audit logs section.

For example, the diagram below shows the results for a search filtered with the actionId.

Search audit logs

Structure of an audit log​

When you expand an audit log in WSO2 Identity Platform by clicking on it, you will get the following view.

Expanded audit log view

The following are the properties of an audit log:

PropertyDescription
idUnique ID for each log event.
recordedAtTimestamp of event occurrence.
requestIdA unique identifier for the trace associated with the action that triggered the audit event.
initiatorIdThe ID of the User or System that initiated the event.
initiatorTypeThe type of the initiator, such as User or System
targetIdThe ID of the resource or object that was the target of the event.
targetTypeThe type of the target resource, such as user or application.

Note that WSO2 Identity Platform currently publishes audit logs for the targetTypes: User, Group, Role, Application
actionIdA description of the action that was performed and triggered the audit event.
For example : add-user, update-role, delete-group
impersonatorIdIn impersonation resource modification flow, this attribute represents the ID of the impersonator who initiated the audit event.
dataAdditional data related to the action, such as parameters or metadata. You can View and Download this content.

Sample Scenario: User Onboarding​

Follow the steps below to observe an audit log due to user onboarding:

  1. Onboard a user to WSO2 Identity Platform.

  2. On the WSO2 Identity Platform Console, go to Logs.

  3. Switch to the Audit tab, expand the latest with the add-user tag, and observe the following audit log.

    Audit log for user onboarding
  4. Click on View next to the data property to see additional data related to this action.

    auditlog data viewer

    You can also Copy and Download the additional data presented in the Audit Log Data Viewer.

Audit log catalog​

For a complete list of audit log action keys with sample logs, see the Audit log catalog.

Was this page helpful?