<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get usage statistics from Databricks or SQL Databricks? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9461#M212</link>
    <description>&lt;P&gt;@Mohammad Saber​&amp;nbsp;Many thanks for sharing your learning thus far! I appreciate it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wouldn't mind, we could both connect on a Teams call to look into this more intimately. I am pretty new to learning the tool&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 01:45:03 GMT</pubDate>
    <dc:creator>Afeez_Raheem</dc:creator>
    <dc:date>2023-02-24T01:45:03Z</dc:date>
    <item>
      <title>How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9456#M207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for a way to get usage statistics from Databricks (Data Science &amp;amp; Engineering and SQL persona).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I created a table. I want to know how many times a specific user queried that table.&lt;/LI&gt;
&lt;LI&gt;How many times a pipeline was triggered?&lt;/LI&gt;
&lt;LI&gt;How long it took to run a DLT pipeline?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to get usage statistics?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 17:29:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9456#M207</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2025-03-20T17:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9457#M208</link>
      <description>&lt;P&gt;The &lt;A href="https://databrickslabs.github.io/overwatch/" alt="https://databrickslabs.github.io/overwatch/" target="_blank"&gt;Overwatch&lt;/A&gt; library may help.  Unity Catalog also has some auditing to see who has accessed a table.  For DLT, there are logs written to storage that you can read as a dataframe and parse for things like start and stop times and count how many starts to determine how often a pipeline is triggered.  &lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 13:15:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9457#M208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-14T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9458#M209</link>
      <description>&lt;P&gt;You can get those type of information by activating verbose audit logs. &lt;A href="https://docs.databricks.com/administration-guide/account-settings/audit-logs.html" target="test_blank"&gt;https://docs.databricks.com/administration-guide/account-settings/audit-logs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It contains a lot important metrics that you can leverage to build dashboards.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:45:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9458#M209</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2023-02-23T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9459#M210</link>
      <description>&lt;P&gt;@Mohammad Saber​&amp;nbsp;, I hope that you are well. I have the same request from my manager. I was wondering if you found a way around this request already. We could work together, if you have not found the solution just yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let's connect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 21:46:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9459#M210</guid>
      <dc:creator>Afeez_Raheem</dc:creator>
      <dc:date>2023-02-23T21:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9460#M211</link>
      <description>&lt;P&gt;@Owo Akilo​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have found so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;If Workspace is enabled for Unity Catalog:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up Azure Log Analytics following the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/account-settings/audit-logs" alt="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/account-settings/audit-logs" target="_blank"&gt;documentation&lt;/A&gt;. Now, I get the logs in Azure Log Analytics Workspace. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/691i75ABCACC2DA2108C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a table named "DatabricksUnityCatalog" where I can find the action name "getTable". Here, I can see table names. But, for some reasons that I don't understand, Databricks doesn't save all table usage information in "DatabricksUnityCatalog".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I queried tables for a few days but I only see "getTable" action for one of the days. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;If Workspace is not enabled for Unity Catalog:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;1) Using cluster logs for queries run in a notebook (&lt;/B&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery" alt="https://learn.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery" target="_blank"&gt;&lt;B&gt;Ref&lt;/B&gt;&lt;/A&gt;&lt;B&gt;).&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After enabling cluster logs, I can see table names in a text file "log4j-active" but this file changes whenever I start the cluster. Seems that this file is archived as gz files but I cannot find table names in the archived files for most queries I had in the notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;2) Query history for queries run in the SQL persona (&lt;/B&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/admin/query-history" alt="https://learn.microsoft.com/en-us/azure/databricks/sql/admin/query-history" target="_blank"&gt;&lt;B&gt;Ref&lt;/B&gt;&lt;/A&gt;&lt;B&gt;). &lt;/B&gt;&lt;/P&gt;&lt;P&gt;We can see the query history in the Databricks user interface but I am looking for a way to send it to the Power BI, and extract table names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how API works and how to use API Specification file (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/api/query-history" alt="https://learn.microsoft.com/en-us/azure/databricks/sql/api/query-history" target="_blank"&gt;Ref&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 01:14:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9460#M211</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2023-02-24T01:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9461#M212</link>
      <description>&lt;P&gt;@Mohammad Saber​&amp;nbsp;Many thanks for sharing your learning thus far! I appreciate it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wouldn't mind, we could both connect on a Teams call to look into this more intimately. I am pretty new to learning the tool&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 01:45:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9461#M212</guid>
      <dc:creator>Afeez_Raheem</dc:creator>
      <dc:date>2023-02-24T01:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9462#M213</link>
      <description>&lt;P&gt;@Owo Akilo​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All right, you can see my email in my profile.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 02:08:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9462#M213</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2023-02-24T02:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9463#M214</link>
      <description>&lt;P&gt;@Mohammad Saber​&amp;nbsp;thank you. I'd be sending you an email shortly&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:38:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9463#M214</guid>
      <dc:creator>Afeez_Raheem</dc:creator>
      <dc:date>2023-02-24T10:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9464#M215</link>
      <description>&lt;P&gt;@Mohammad Saber​&amp;nbsp;, sorry it appears you don't have your email there. Would you help confirm, please?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:43:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/9464#M215</guid>
      <dc:creator>Afeez_Raheem</dc:creator>
      <dc:date>2023-02-24T10:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usage statistics from Databricks or SQL Databricks?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/69128#M1335</link>
      <description>&lt;P&gt;You can use System Tables, now available in Unity Catalog metastore, to create the views you described.&amp;nbsp;&lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/admin/system-tables/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 06:52:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-get-usage-statistics-from-databricks-or-sql-databricks/m-p/69128#M1335</guid>
      <dc:creator>twole</dc:creator>
      <dc:date>2024-05-16T06:52:21Z</dc:date>
    </item>
  </channel>
</rss>

