How to Send Azure Pipeline Logs to Application Insights or Log Analytics Workspace?

Rukhsar Afroz 0 Reputation points
2025-02-06T09:57:11.4166667+00:00

I am using a stored procedure that prints the output of commands in pipeline logs, and I want to push these logs to Application Insights or a Log Analytics workspace.

What steps are needed to achieve this?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,462 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 25,936 Reputation points MVP
    2025-02-06T12:29:24.0133333+00:00

    Hi,

    The only possible way is by using Log Ingestion API. I would suggest to try first the tutorial on your local machine to understand how it works and after that proceed to implementing it in your pipelines. This if for Log Analytics. Application Insights also have a feature for custom logs: Application Insights API for custom events and metrics.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

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.