# Viewing Audit Logs

After you enable CTS, it records key operations performed on IAM. You can view the operation records of the last 7 days on the CTS console.

#### Viewing IAM Audit Logs

1. Log in to the management console.
2. Click Service List in the upper part of the page and choose Cloud Trace Service under Management & Deployment.
3. In the navigation pane, choose Trace List.
4. Click Filter in the upper right corner of the trace list to set filter conditions.

   The following filters are available:
   - Trace Source, Resource Type, and Search By
     - Select a filter criteria from the drop-down list. Specifically, select IAM from the Trace Source drop-down list.
     - If you select Trace name for Search By, select a trace name.
     - If you select Resource ID for Search By, select or enter a resource ID.
     - If you select Resource name for Search By, select or enter a resource name.
   - Operator: Select an operator (a user rather than domain).
   - Trace Status: Available options include All trace statuses, normal, incident, and warning.
   - Specify the start time and end time for querying traces.
5. Click Query.
6. Expand the details of a trace, as shown in Figure 1.

   Figure 1 Expanding trace details
7. Click View Trace in the Operation column. In the View Trace dialog box as shown in Figure 2, the trace details are displayed.

   Figure 2 Viewing a trace

Parent topic: Auditing