cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Audit Logs, What is "dataSourceId"?

Mado
Valued Contributor II

Hi,

I want to access the Databricks Audit Logs to check user activity.

I created a Databricks workspace on the premium pricing tier.

I configured Audit logs to be sent to Azure Diagnostic log delivery. What I got in the "Log Analytics Workspace":

image 

 I have two questions.

A) What is the difference between "DatabricksSQL" & "DatabricksDatabricksSQL"?

B) When I open "DatabricksSQL" or "DatabricksDatabricksSQL", and select "executeFastQuery" & "executeAdhocQuery" for ActionName:

image 

I get "dataSourceId" in the column "Requestparams".

image 

I was wondering what "dataSourceId" is. Is it the TableID or CatalogID?

1 ACCEPTED SOLUTION

Accepted Solutions

youssefmrini
Databricks Employee
Databricks Employee

The data_source_id field specifies the id of the SQL warehouse against which this query will run. You can use the Data Sources API to see a complete list of available SQL warehouses.

View solution in original post

4 REPLIES 4

Anonymous
Not applicable

ID of the data source for this endpoint. This is used to bind an Databricks SQL query to an endpoint. data_source_id is an another identifier of the SQL Endpoint.

https://docs.databricks.com/administration-guide/account-settings/audit-logs.html#workspace-level-au....

Mado
Valued Contributor II

Thanks.

Is SQL endpoint the same as SQL Warehouse?

The SQL warehouse ID is different from dataSourceId.

image 

Cluster-ID is also different:

image 

Do you know the difference between "DatabricksSQL" and "DatabricksDatabricksSQL"? Seems that they contain the same information.

youssefmrini
Databricks Employee
Databricks Employee

The data_source_id field specifies the id of the SQL warehouse against which this query will run. You can use the Data Sources API to see a complete list of available SQL warehouses.

Mado
Valued Contributor II

Thanks. But, the id of the SQL warehouse is different from data_source_id as I uploaded in my previous post.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group