Sends custom logs to Azure Monitor Log Analytics workspaces using the Logs Ingestion API and Python SDK.
This skill provides a comprehensive guide and implementation patterns for integrating the Azure Monitor Ingestion SDK within Python applications. It enables developers to stream custom telemetry and log data to Log Analytics by leveraging Data Collection Endpoints (DCE) and Data Collection Rules (DCR). The skill covers essential tasks including authentication via Azure Identity, handling both synchronous and asynchronous ingestion, managing partial failures with error callbacks, and configuring environments for sovereign clouds like Azure Government. It is particularly useful for building robust observability pipelines that require automated batching, compression, and schema-mapped data delivery.
Key Features
01Support for both Sync and Async Python clients
02Detailed error handling for partial ingestion failures
032 GitHub stars
04Custom log ingestion via Data Collection Rules (DCR)
05Sovereign cloud configuration for regulated environments
06Automatic batching and GZIP compression for large datasets
Use Cases
01Streaming application performance telemetry to Log Analytics
02Building high-throughput data pipelines for cloud-native observability
03Uploading structured JSON audit logs from Python backends