cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Rest endpoint for data bricks audit logs

madhura
New Contributor II

I am trying to find official documentation link to get audit logs of data bricks. unable to find it. referred on.

https://docs.databricks.com/en/administration-guide/account-settings/audit-logs.html

https://docs.databricks.com/api/workspace/introduction

In above links there was no AP to fetch the audit logs.

But we found this link https://learn.microsoft.com/en-us/answers/questions/1180832/how-to-query-databricks-audit-logs

In this we found that The endpoint for querying audit logs is  ``` /api/2.0/audit/get ```

To support that Please share official documentation link to get audit logs using rest API

3 REPLIES 3

Yeshwanth
Honored Contributor
Honored Contributor

Hi @madhura Good day
Please find the official doc for the Audit Logs: https://docs.databricks.com/en/administration-guide/account-settings/audit-logs.html

Also, the easiest way to access and query your account’s audit logs is by using system tables (Public Preview).

Let us know if this information is helpful.

Kind regards,

Yesh

madhura
New Contributor II

Hi @Yeshwanth 

Thank you for the your answer.

In above links I didn't see any API to fetch the audit logs.

I want to access all audit logs of data bricks using API .

Thanks,

Madhura

Yeshwanth
Honored Contributor
Honored Contributor

@madhura 

I could not find any endpoint that can be used to get the Audit logs.

However, you can enable system tables in your workspace and try to read the data just like you read from any other table. Please check this to enable system tables: https://docs.databricks.com/en/administration-guide/system-tables/index.html

Also, if you have system logs enabled/audit log tables in their workspace, this API could help: 

Kind regards,

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!