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, Where the log files are stored? How to read them?

Mado
Valued Contributor II

Hi,

I want to access the Databricks Audit Logs to check user activity. For example, the number of times that a table was viewed by a user.

I have a few questions in this regard.

1) Where the log files are stored? Are they stored on DBFS?

2) Can I read log files and save them as a table (let's say a delta table)?

If Log files are saved somewhere like DBFS, I might be able to read files by SQL language. 

I'd like to know if there is any way to get Logs as a Databricks table. I mean, saving the Logs as a table.

Also, I want it to work continuously; adding new logs to the table when a new event happens (not just one time).

I am not sure if I can use SQL language for this purpose or not (instead of Rest API).

Any idea how to do that?

3 REPLIES 3

Debayan
Databricks Employee
Databricks Employee

Hi, The audit log delivery can be delivered in storage buckets. Please refer: https://docs.databricks.com/administration-guide/account-settings/audit-logs.html#configure-audit-lo...

Mado
Valued Contributor II

Thanks.

Can we access Logs in the Databricks platform, instead of sending them to a storage account?

Anonymous
Not applicable

Hi @Mohammad Saberโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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