<?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 we can send databricks log to Azure Application Insight ? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/127774#M48079</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp; this code has been removed ..is there any documentation how we can send databricks jobs custom logs to application insight or log analytics workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 10:06:20 GMT</pubDate>
    <dc:creator>madhavink14</dc:creator>
    <dc:date>2025-08-08T10:06:20Z</dc:date>
    <item>
      <title>How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3950#M817</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send databricks logs to azure application insight.&lt;/P&gt;&lt;P&gt;Is there any way we can do it ??&lt;/P&gt;&lt;P&gt;Any blog or doc will help me.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 18:07:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3950#M817</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-05-27T18:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3951#M818</link>
      <description>&lt;P&gt;#DAIS2023​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 12:05:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3951#M818</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-05-31T12:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3953#M820</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 10:41:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3953#M820</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-06-05T10:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3952#M819</link>
      <description>&lt;P&gt;Hi, You can follow : &lt;A href="https://learn.microsoft.com/en-us/azure/architecture/databricks-monitoring/application-logs" alt="https://learn.microsoft.com/en-us/azure/architecture/databricks-monitoring/application-logs" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/architecture/databricks-monitoring/application-logs&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Also please tag&amp;nbsp;@Debayan​&amp;nbsp;with your next response which will notify me, Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 07:16:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/3952#M819</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-06-05T07:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/44126#M27605</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;in the&amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/architecture/databricks-monitoring/application-logs" target="_blank" rel="nofollow noopener noreferrer"&gt;https://learn.microsoft.com/en-us/azure/architecture/databricks-monitoring/application-logs&lt;/A&gt;. there is a github repository mentioned&amp;nbsp;&lt;A href="https://github.com/mspnp/spark-monitoring" target="_blank"&gt;https://github.com/mspnp/spark-monitoring&lt;/A&gt;&amp;nbsp;? That repository is marked as&amp;nbsp; maintainance mode.&amp;nbsp; Just want to double check if that is the latests resource we should use&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 21:35:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/44126#M27605</guid>
      <dc:creator>floringrigoriu</dc:creator>
      <dc:date>2023-09-08T21:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/44269#M27626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88459"&gt;@floringrigoriu&lt;/a&gt;&amp;nbsp;, As of now, yes that is the latest we can use. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 06:42:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/44269#M27626</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-09-11T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/127774#M48079</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp; this code has been removed ..is there any documentation how we can send databricks jobs custom logs to application insight or log analytics workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 10:06:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/127774#M48079</guid>
      <dc:creator>madhavink14</dc:creator>
      <dc:date>2025-08-08T10:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/129909#M48633</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am in the same case than you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178458"&gt;@madhavink14&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The most recent post I found regarding what we want to achieve is:&lt;BR /&gt;&lt;A href="https://dustinvannoy.com/2024/01/07/monitoring-databricks-with-log-analytics-updated/" target="_blank"&gt;https://dustinvannoy.com/2024/01/07/monitoring-databricks-with-log-analytics-updated/&lt;/A&gt;&lt;BR /&gt;It is based on this spark-monitoring repo:&lt;BR /&gt;&lt;A href="https://github.com/dvannoy/spark-monitoring/tree/l4jv2_jars/target" target="_blank"&gt;https://github.com/dvannoy/spark-monitoring/tree/l4jv2_jars/target&lt;/A&gt;&lt;BR /&gt;Currently, by following this tutorial, I am able to have some log4j logs to be collected into a log Analytics workspace inside the sparkLogginEvent_CL table (spark-monitoring doesn't log to App Insights), but those logs have to come from a Notebook (tested with scala and python notebook).&lt;/P&gt;&lt;P&gt;So for now, logs that are done in a Jar file are not collected...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 13:59:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/129909#M48633</guid>
      <dc:creator>loic</dc:creator>
      <dc:date>2025-08-27T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How we can send databricks log to Azure Application Insight ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/138794#M51013</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I finally used he AppInsights agent from OpenTelemetry which is documented in the official Microsoft documentation here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=java" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=java&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Below is an adaptation of this "Get started with OpenTelemetry" for an Azure Databricks compute.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1 - Upload the AppInsights.jar in the DBFS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2 - Make the jar to be uploaded in the compute.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;From the settings of your compute, tab "configuration", then "advanced options", add an "init scripts" that will copy the jar on the compute.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is what a really sample "init_script.sh" can looks like:&lt;BR /&gt;!/bin/bash&lt;BR /&gt;cp -f /dbfs/databricks/applicationinsights-agent-3.7.4.jar /databricks/jars&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3 - Make the spark JVM to use the agent&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is achieved with a spark option that has to be applied to the driver and the executor (if you want to collect logs for both).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;From the settings of your compute, tab "configuration", then "advanced options", add lines in "spark config".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.driver.extraJavaOptions -javaagent:/databricks/jars/applicationinsights-agent-3.7.4.jar&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.executor.extraJavaOptions -javaagent:/databricks/jars/applicationinsights-agent-3.7.4.jar&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;4 - Configure the AppInsights agent to report to your AppInsights.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is achieved with an environment variable (how to retrieve this connection string is already explained in the Microsoft link at the top of this post)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;From the settings of your compute, tab "configuration", then "advanced options", add a line in "Spark : environment variables".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=XXXXXXXXXXXXXXX;IngestionEndpoint=&lt;A href="https://XXXX.applicationinsights.azure.com/;LiveEndpoint=https://francecentral.livediagnostics.monitor.azure.com/;ApplicationId=XXXXXXXX" target="_blank"&gt;https://XXXX.applicationinsights.azure.com/;LiveEndpoint=https://francecentral.livediagnostics.monitor.azure.com/;ApplicationId=XXXXXXXX&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;That's it, now your logs will be sent to the configured appInsights.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Of course, you can do advanced configuration for the AppInsights agent (agent role name, sampling etc..) by putting an applicationInsights.json file at the same location that the jar (adapt step 1 and 2 then)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;More information on this topic here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Loïc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:34:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-we-can-send-databricks-log-to-azure-application-insight/m-p/138794#M51013</guid>
      <dc:creator>loic</dc:creator>
      <dc:date>2025-11-12T14:34:27Z</dc:date>
    </item>
  </channel>
</rss>

