Query Audit
Overview
Records the history of completed queries and action executions for DB operations in QueryPie.
Viewing Query Audit

Administrator > Audit > Databases > Query Audit
- Navigate to Administrator > Audit > Databases > Query Audit menu.
 - Logs are displayed in descending order based on the query execution date.
 - You can search with the following conditions through the search field in the top left of the table:
- Name : User name
 - Table(s) : Called table name
 
 - Click the filter button on the right side of the search field to filter with AND/OR conditions for the following:
- Connection Name : Connected DB connection name
 - Database Type : Database type
 - SQL Type : SQL statement type
 - Action Type : Action type
- SQL Execution : SQL statement execution
 - Export Data : Data export
 - Export Schema : Schema export
 - Import Data : Data import
 - Import Schema : Schema import
 - Copy Clipboard : Clipboard copy
 
 - Executed At : Execution date and time
 - Result : Operation success/failure status
 - Prevented : Whether unauthorized access was executed due to policy
 - Table Resolved : Whether table was called
 - Executed From  : Query execution subject
- Web Editor : Executed from QueryPie web editor
 - Proxy : Executed through QueryPie proxy
 - SQL Request : Executed through SQL Request workflow
 - SQL Job : Executed by SQL Job
 - SQL Export Request : Executed through SQL Export Request workflow
 
 - Label : Whether DB is ledger
 
 - You can refresh the log list through the refresh button in the top right of the table.
 - The table provides the following column information:
- No : Event identification number
 - Executed At : Execution date and time
 - Result : Operation success/failure status
 - Name : Target user name
 - Email : Target user email
 - Action Type : Action type
 - Connection Name : Target DB connection name
 - Database Type : Target database type
 - Privilege Name : User access permission
 - Client IP : User client IP address
 - Replication Type : DB Replication type
 - DB Host : Connected DB host
 - DB Name : DB name
 - DB User : DB user ID
 - Table(s) : Called table name
 - SQL Type : SQL statement type
 - Query : Executed query statement
 - Time(ms) : Execution time (in milliseconds)
 - Rows : Number of affected rows
 - Data Size : Called data size
 - Client Name : Used client name (DataGrip, etc.)
 - Error Message : Records of unusual events such as execution failures
 - Execution Reason : Query execution reason
 - Prevented : Whether unauthorized access was executed due to policy
 - Label : Whether DB is ledger
 - Executed From : Query execution subject
 
 
Viewing Query Audit Details
You can view detailed information by clicking on each row.

Administrator > Audit > Databases > Query Audit > Query Audit Details
- The top of the right drawer displays the following basic query audit information:
- Result : Operation success/failure status
 - Name : Target user name
 - Action Type : Action type
 - SQL Type : SQL statement type
 - Privilege Name : User access permission
 - Privilege Type : User access permission type
 - Data Size : Called data size
 - Time(ms) : Execution time (in milliseconds)
 - Executed At : Execution date and time
 - Executed From : Query execution subject
 - Label : Whether DB is ledger
 - Connection Name : Target DB connection name
 - Replication Type : DB Replication type
 - Client Name : Used client name (DataGrip, etc.)
 - Client IP : User client IP address
 - Host Name : Connection execution hostname
 - Database Type : Target database type
 - DB Host : Connected DB host
 - DB Name : DB name
 - DB User : DB user ID
 - Table(s) : Called table name
 
 - The bottom displays the executed query body and additional details:
- Query : Executed query statement
 - First 10 Rows  : First 10 row samples for called SELECT statements
- This field is only displayed when the Display the first 10 rows in Query Audit setting is enabled. (Default: Off)
- Refer to DB Connection Security Settings in Security
 
 - Copy Data : Button for copying before/after data
 
 - This field is only displayed when the Display the first 10 rows in Query Audit setting is enabled. (Default: Off)
 - Error Message : Records of unusual events such as execution failures
 - Execution Reason : Query execution reason
 
 
Last updated on