Skip to content

Native Query Audit Logs

Audience: Users with the AUDIT permission and Data Owners

Content Summary: With the Native Query Audit feature enabled, users can view audit records for queries against the native data sources on the Audit page. Note that this feature is currently only available with Native Snowflake Integrations.

This page outlines the common JSON properties of native query audit logs in Immuta.

Audit Messages

Each audit message from the Immuta platform will be a one-line JSON object containing the properties listed below. These audit records are stored with the recordType: nativeQuery.

Property Description Example
DateTime integer or string The timestamp for when the record was created. This may be an ISO-8601 timestamp string or an epoch timestamp. 2504188066580 or 2017-08-31T14:01:15.607Z
ProfileID integer The profile ID of the user who made the query. 1
UserID string The user ID of the user who made the query.
DataSourceID integer The ID of the data source that was queried. 12
DataSourceName string The name of the data source that was queried. Public Customer Data
RecordType string The type of record captured. Native query audit records will always be nativeQuery.
Success boolean If true, the query was successful. true or false
Component string The Immuta component that generated the record. nativeSql
AccessType string Indicates whether access was granted to an individual blob or if this was a query potentially encompassing many blobs. query
Query string The query that was run in the native integration. select * from IMMUTA.PUBLIC.CUSTOMER;
Handler string The native integration type. Snowflake
StartTime timestamp The date and time the query started in UTC. 2021-09-20 17:20:00.39100000 +0000
EndTime timestamp The date and time the query ended in UTC. 2021-09-20 17:20:02.42100000 +0000
Duration integer The time the query took in milliseconds. 2030
NativeObject string The fully qualified object that was queried. IMMUTA.PUBLIC.CUSTOMER
NativeObjectType string The type of the object that was queried. view or table
Host string The host that the native integration is connected to.
Database string The database that the native object resides in. IMMUTA
SQLUser string The native integration username of the user who made the query.