cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
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
Valued Contributor II
Valued Contributor II

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
Valued Contributor II
Valued Contributor II

@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,