Skip to content

How to analyse logs of a specific table

Situation: suppose you have an error message in ADF and you would like to analyse the logs of the function execution.

Here's what you need to do:

  1. in ADF, get the operation_id of the function call. For a durable function, this will be in the Wait for Completion activity

af-application-insights-operation-id.png

  1. go to the function > Invocations > Application Insights

af-application-insights-open.png

  1. place a KQL query

   traces
| project
    timestamp,
    severityLevel,
    message,
    operation_Id
| where operation_Id =~ 'a8c0533ce30e0cdf19c16a3f6847619c'
| order by timestamp asc

Alternatively, a useful query is:

   traces
| project
    timestamp,
    severityLevel,
    message,
    operation_Id
| where message contains 'OngoingSalesLines'
| order by timestamp asc

This allows you to find the operation_id for a specific table.

  1. Run

This will then display the logs:

af-application-insights-logs.png