How to get the log from Synapse

Jia Zhang 40 Reputation points
2024-03-05T14:48:31.7+00:00

Hi Team,

May I know how can I read the log of pipeline from the Synapse? When I manuelly go into UI and check pipeline spark session log, it will shows the log is too large to donwload, copy curl to donwload. After I copy it, and past !curl xcxxxxxx in a cell in synapse notebook, then it will shows download it, and then I enterd cat stderr, it will shows the result as output, but since it is too large, I can't see all then either that cell running will failed or my browser freez, may I know if anyway I can donwload it to my local to review? Thanks!

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,868 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 18,271 Reputation points
    2024-03-06T06:07:32.07+00:00

    Hi Jia Zhang,

    Thanks for reaching out to Microsoft Q&A.

    Did you try this?

    The Synapse Apache Spark diagnostic emitter extension is a library that enables the Apache Spark application to emit the logs, event logs, and metrics to one or more destinations, including Azure Log Analytics, Azure Storage, and Azure Event Hubs.

    https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/azure-synapse-diagnostic-emitters-azure-storage

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.