Azure Monitor Log Ingestion for Python

0•

Streamlines the integration of custom application logs into Azure Monitor Log Analytics using the Python Ingestion SDK.

This skill provides comprehensive patterns and best practices for using the Azure Monitor Ingestion SDK for Python to send custom logs to Log Analytics workspaces via the Logs Ingestion API. It simplifies the setup of Data Collection Endpoints (DCE) and Data Collection Rules (DCR), offering robust implementation examples for both synchronous and asynchronous workflows. Developers can leverage this skill to implement secure authentication via Azure Identity, manage complex log schemas, and handle partial ingestion failures with sophisticated error-handling callbacks, ensuring high-reliability observability for Azure-hosted applications.

주요 기능

01Detailed error handling and retry logic for partial ingestion failures
02Support for both Synchronous and Asynchronous (aio) log ingestion
030 GitHub stars
04Automatic log batching and Gzip compression for optimized performance
05Secure authentication using DefaultAzureCredential and Azure Identity
06Configurable support for Sovereign Clouds including Azure Government

사용 사례

01Building resilient logging pipelines with custom schema mapping and error recovery
02Ingesting telemetry from Python microservices into centralized Log Analytics workspaces
03Automating log delivery from serverless functions to Azure Monitor