โ03-12-2024 07:49 AM
Hi,
I am account admin role but not able to see access schema , I want to query audit log table
โ03-13-2024 02:26 AM
@Kroy You should need to enable the system.access schema then it will be visible to your catalog, please find below docs for enabling the same -
Audit log system table reference | Databricks on AWS
Monitor usage with system tables | Databricks on AWS
โ03-13-2024 03:27 AM
Done, needed to enable the system schema --
Run this command in notebook- to get list of available schema
%sh
curl -v -X GET -H "Authorization: Bearer <PAT Token>" "https://adb-<xxx>.azuredatabricks.net/api/2.0/unity-catalog/metastores/<metastore-id>/systemschemas"
state: AVAILABLE: The system schema is available but has not yet been enabled.
state: EnableCompleted: You have enabled the system schema and it is visible in Catalog Explorer.
To enable any schema
%sh
curl -v -X DELETE -H "Authorization: Bearer <PAT Token>" "https://adb-<xxx>.azuredatabricks.net/api/2.0/unity-catalog/metastores/<metastore-id>/systemschemas/<SCHEMA_NAME>"
โ03-12-2024 01:08 PM
Hi @Kroy! Are you not able to see the audit log table under the information_schema?
โ03-12-2024 09:03 PM
Hi,
No
โ03-13-2024 02:26 AM
@Kroy You should need to enable the system.access schema then it will be visible to your catalog, please find below docs for enabling the same -
Audit log system table reference | Databricks on AWS
Monitor usage with system tables | Databricks on AWS
โ03-13-2024 03:27 AM
Done, needed to enable the system schema --
Run this command in notebook- to get list of available schema
%sh
curl -v -X GET -H "Authorization: Bearer <PAT Token>" "https://adb-<xxx>.azuredatabricks.net/api/2.0/unity-catalog/metastores/<metastore-id>/systemschemas"
state: AVAILABLE: The system schema is available but has not yet been enabled.
state: EnableCompleted: You have enabled the system schema and it is visible in Catalog Explorer.
To enable any schema
%sh
curl -v -X DELETE -H "Authorization: Bearer <PAT Token>" "https://adb-<xxx>.azuredatabricks.net/api/2.0/unity-catalog/metastores/<metastore-id>/systemschemas/<SCHEMA_NAME>"
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