azure-monitor-ingestion-py - Send custom logs to Azure Monitor Log Analytics
Python SDK for sending custom logs to Azure Monitor Log Analytics via Logs Ingestion API
Tags
Updated: 2026-03-19Capabilities
Typical Inputs
Typical Outputs
What this skill does
- upload logs
- create client
- handle errors
- retry failed logs
- read JSON file
Inputs
- Azure credential
- DCE endpoint
- DCR rule ID
- DCR stream name
- log data
Outputs
- failed logs list
- async client
- log records
Requirements
- Python 3.7+
- azure-monitor-ingestion package
- azure-identity package
- Log Analytics Workspace
- Data Collection Endpoint
- Data Collection Rule
