Hi Jakub Pytlik,
Thanks for reaching out to Microsoft Q&A.
The missing log records in Azure Log Analytics for Synapse pipelines, despite their successful completion, could be attributed to several potential causes:
- Latency in Log Analytics Data Ingestion: Azure Log Analytics might experience delays in ingesting log data, causing certain records (ex: "Queued", "InProgress", or "Succeeded" statuses) to be missing temporarily. In such cases, the records should eventually appear after the ingestion delay resolves.
Log Data Retention Policy or Log Filtering: It’s possible that a retention policy or custom log filtering could be omitting certain pipeline statuses. Check your Log Analytics workspace settings to ensure that all necessary data types are being collected without exclusions, and verify that there are no filters set that might exclude "Queued", "InProgress", or "Succeeded" records.
Issues with Diagnostic Settings Configuration: If the diagnostic settings for the Synapse workspace aren’t correctly configured, some logs may not be captured. Ensure that all pipeline logs, including the required categories (such as PipelineRuns, TriggerRuns, ActivityRuns), are being sent to Log Analytics. Double-check the scope of the diagnostics and the selected log categories.
Intermittent Connectivity or Pipeline Execution Issues: If the pipeline execution experiences intermittent connectivity issues (e.g., network issues), some log entries might not be transmitted to Log Analytics even though the pipeline ultimately completes successfully. This may explain missing "Queued" or "InProgress" records.
Concurrent Pipeline Execution Conflicts: If multiple pipelines are running concurrently, log entry conflicts may occur, causing incomplete logs for individual pipelines. Ensure that the concurrency settings in Synapse and Log Analytics are appropriately configured to handle parallel runs.
Synapse Monitor Inconsistencies: There could be inconsistencies between the Synapse Monitor and Log Analytics records. The Monitor section in Synapse provides a near-real-time status but might not always perfectly sync with Log Analytics. Reviewing both can sometimes highlight discrepancies that aren't actual data loss but reflect a lag between the systems.
Potential Solutions:
- Investigate Diagnostic Settings: Review your Synapse diagnostic settings to ensure that all relevant pipeline statuses (Queued, InProgress, Succeeded) are being logged and sent to Log Analytics.
- Check Log Analytics Filters: Ensure no filters are in place that might inadvertently filter out important logs.
- Review Pipeline Execution Logs: Manually cross-check the logs in both Synapse Monitor and Log Analytics to identify any patterns in the missing records, which could help pinpoint the issue.
- Monitor Ingestion Delays: Check Azure Service Health to see if there are any ongoing issues related to Log Analytics that might explain delayed or missing records.
By exploring these areas, you should be able to better understand why some pipeline statuses are missing in your logs and find a solution to ensure all records are captured.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.