Audit and observability

Updated at:
Copy as MD

Agent Data Gateway provides end-to-end auditing capabilities and automatically logs every SQL operation that is executed through the gateway. This topic describes how to view and filter SQL execution logs.

View SQL execution logs

  1. Log on to the AI-Native Database Service console.

  2. In the left-side navigation pane, click Data Gateway to go to the Agent Gateway console.

  3. In the left-side navigation pane of the Agent Gateway console, click Audit and Observability.

  4. The audit page displays the logs for all SQL operations that are executed through Agent Data Gateway. You can view the following information in the execution log list:

    Column

    Description

    Log Time

    The time when the SQL operation was executed.

    Operator

    The user or agent that initiated the SQL operation.

    Database

    The destination database on which the SQL operation was performed.

    SQL

    The SQL statement that was executed.

    Execution Status

    The execution result of the SQL statement.

    Rows

    The number of rows affected by the SQL operation.

    Duration (ms)

    The execution duration of the SQL statement, in milliseconds.

Search and filter SQL execution logs

You can search and filter the execution logs by using the following methods:

  • Keyword search: Enter an SQL keyword in the search box to search for logs by SQL statement content.

  • Filter by dimension: Click Filter next to the search box. Then, specify filter conditions to filter the logs.

  • Filter by time range: Click All Time and select a time range from the drop-down list to filter logs within a specific time period. To specify a custom time range, select Custom and then specify the start time and end time.

  • Filter by operator: Click one of the following tabs to filter SQL execution logs:

    • My Operations: displays only SQL execution logs that are initiated by the current user.

    • All: displays SQL execution logs for all users. This tab is visible only to users with the administrator role.