<?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 PipelineSpec object does not seem to show event_log when defining a pipeline with DAB in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pipelinespec-object-does-not-seem-to-show-event-log-when/m-p/127579#M48017</link>
    <description>&lt;P class=""&gt;Hi all, I am looking for help on a very specific subject.&lt;/P&gt;&lt;P class=""&gt;I am trying to access the event_log property (EventLogSpec) of an object from PipelineSpec that I get by running a query on the Workspace Client, which is part of the Databricks Python sdk:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w.pipelines.get(pipeline_id=created.pipeline_id).spec&lt;/LI-CODE&gt;&lt;P class=""&gt;When I run this inside a DLT pipeline notebook, however, I cannot find the event_log property, even though I have defined the following in the Asset Bundle pipeline definition&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;event_log:
        catalog: catalog_name
        schema: schema_name
        name:  event_log_name&lt;/LI-CODE&gt;&lt;P class=""&gt;Is this a known issue, or am I potentially doing something wrong? I do see that the event log is created at the specified location.Thanks in advance!&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html#databricks.sdk.service.pipelines.PipelineSpec" target="_blank"&gt;https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html#databricks.sdk.service.pipelines.PipelineSpec&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;Rik&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 14:39:44 GMT</pubDate>
    <dc:creator>RikL</dc:creator>
    <dc:date>2025-08-06T14:39:44Z</dc:date>
    <item>
      <title>PipelineSpec object does not seem to show event_log when defining a pipeline with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/pipelinespec-object-does-not-seem-to-show-event-log-when/m-p/127579#M48017</link>
      <description>&lt;P class=""&gt;Hi all, I am looking for help on a very specific subject.&lt;/P&gt;&lt;P class=""&gt;I am trying to access the event_log property (EventLogSpec) of an object from PipelineSpec that I get by running a query on the Workspace Client, which is part of the Databricks Python sdk:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w.pipelines.get(pipeline_id=created.pipeline_id).spec&lt;/LI-CODE&gt;&lt;P class=""&gt;When I run this inside a DLT pipeline notebook, however, I cannot find the event_log property, even though I have defined the following in the Asset Bundle pipeline definition&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;event_log:
        catalog: catalog_name
        schema: schema_name
        name:  event_log_name&lt;/LI-CODE&gt;&lt;P class=""&gt;Is this a known issue, or am I potentially doing something wrong? I do see that the event log is created at the specified location.Thanks in advance!&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html#databricks.sdk.service.pipelines.PipelineSpec" target="_blank"&gt;https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html#databricks.sdk.service.pipelines.PipelineSpec&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;Rik&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 14:39:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pipelinespec-object-does-not-seem-to-show-event-log-when/m-p/127579#M48017</guid>
      <dc:creator>RikL</dc:creator>
      <dc:date>2025-08-06T14:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: PipelineSpec object does not seem to show event_log when defining a pipeline with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/pipelinespec-object-does-not-seem-to-show-event-log-when/m-p/132512#M49521</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178236"&gt;@RikL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out.&lt;/P&gt;
&lt;P&gt;It doesn't seem you are doing anything wrong.&amp;nbsp;&lt;SPAN&gt;Per the &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/pipelines.html#databricks.sdk.service.pipelines.PipelineSpec.event_log" target="_self"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;, indeed, the &lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;event_log&lt;/EM&gt;&lt;SPAN&gt; spec should be retrieved when you run the pipeline.get, then the spec.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I was able to test and confirm the correct behavior with the following basic code, using SDK version 0.49 with Serverless. The latest version is 0.65 (per "%pip index versions databricks-sdk").&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient

# Initialize client with host and token authentication
w = WorkspaceClient()

# The pipeline ID you want to fetch
pipeline_id = # [your_pipeline_id]

# Get pipeline details
pipeline = w.pipelines.get(pipeline_id=pipeline_id)

# Print some key information
print(f"Pipeline Details: {pipeline}")
print(f"Pipeline Event Log Spec: {pipeline.spec.event_log}")
&lt;/LI-CODE&gt;
&lt;P&gt;Here is the result of the Event Log Spec:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmayorga_0-1758244732370.png" style="width: 514px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20113iB5864A624C3032D8/image-dimensions/514x18?v=v2" width="514" height="18" role="button" title="mmayorga_0-1758244732370.png" alt="mmayorga_0-1758244732370.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here a couple of troubleshooting questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;From the SDK perspective:
&lt;UL&gt;
&lt;LI&gt;Are you using a Classic Cluster?&amp;nbsp;Have you tried to reinstall/update your SDK?&lt;/LI&gt;
&lt;LI&gt;Have you tried with Serverless?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;From the DAB perspective:
&lt;UL&gt;
&lt;LI&gt;I’m wondering if the DAB is missing a registration between the Pipeline and the Event Log, which might explain why it's not being retrieved when you run "pipeline get" with the SDK. Have you tried reconfiguring the pipeline in the UI, running it again, and then checking the results with the SDK?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Workarounds
&lt;UL&gt;
&lt;LI&gt;Option 1: Remove from your DAB the event_log configuration. This will cause the pipeline to create a hidden table within your default catalog and schema. Then leverage the "event_log" function using the pipeline ID. &lt;A href="https://docs.databricks.com/aws/en/dlt/monitor-event-logs#query-the-event-log" target="_self"&gt;More details here&lt;/A&gt;&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM event_log(&amp;lt;pipelineId&amp;gt;);

&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Option 2: Try to query the event log directly on your already known location "select * from catalog.schema.event_log_table_name&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 01:46:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pipelinespec-object-does-not-seem-to-show-event-log-when/m-p/132512#M49521</guid>
      <dc:creator>mmayorga</dc:creator>
      <dc:date>2025-09-19T01:46:43Z</dc:date>
    </item>
  </channel>
</rss>

