azure-monitor-ingestion-py

Send Python application logs to Azure Monitor Log Analytics via the Logs Ingestion API.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-monitor-ingestion-py-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-monitor-ingestion-py
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-monitor-ingestion-py
Command: npx skills add https://github.com/microsoft/skills --skill azure-monitor-ingestion-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Send Python application logs to Azure Monitor Log Analytics via the Logs Ingestion API.

Core Features & Use Cases

  • Sync and async Clients: LogsIngestionClient for both synchronous and asynchronous log uploads.
  • Data Collection Endpoint (DCE) and Data Collection Rule (DCR) support: configure ingestion pipelines and stream data to Custom Tables.
  • Cross-cloud and governance readiness: supports sovereign clouds and secure authentication with DefaultAzureCredential.

Quick Start

Install the azure-monitor-ingestion package and instantiate a LogsIngestionClient with DefaultAzureCredential to begin uploading logs.

Frequently Asked Questions about azure-monitor-ingestion-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send Python application logs to Azure Monitor Log Analytics?

You can send Python application logs to Azure Monitor Log Analytics using the Logs Ingestion API via a sync or async LogsIngestionClient configured with DefaultAzureCredential.

Can I use the Azure Monitor Logs Ingestion API with an asynchronous Python application?

Yes, the Azure Monitor Logs Ingestion API supports asynchronous log uploads in Python applications through the asynchronous LogsIngestionClient implementation.

How do I configure Data Collection Endpoint and Data Collection Rule for Azure Monitor log ingestion?

Configuring Data Collection Endpoint and Data Collection Rule involves setting up ingestion pipelines within your Azure Monitor environment to stream data directly to Custom Tables.

Does this Azure Monitor log ingestion method support sovereign clouds for cross-cloud authentication?

Yes, cross-cloud authentication and sovereign cloud endpoints are supported, utilizing DefaultAzureCredential to ensure secure log ingestion across different cloud environments.

What is the best way to build a Python telemetry pipeline for on-premises, cloud, and serverless environments?

Building a Python telemetry pipeline across on-premises, cloud, and serverless environments is achieved by using the Azure Monitor Logs Ingestion API to centralize observability data.

Do I need DefaultAzureCredential to upload logs to Azure Monitor Custom Tables?

Yes, you need DefaultAzureCredential to authenticate and securely upload logs to Azure Monitor Custom Tables using the Logs Ingestion API.