Streams custom log data to Azure Monitor Log Analytics using the Python SDK and Logs Ingestion API.
This skill provides Claude with comprehensive patterns and best practices for implementing custom log ingestion into Azure Monitor via Python. It enables developers to seamlessly integrate with Log Analytics by configuring Data Collection Endpoints (DCE) and Data Collection Rules (DCR), utilizing Azure Identity for secure authentication, and managing high-volume data streams. The skill covers both synchronous and asynchronous implementations, offering robust error handling for partial failures and automated batching/compression to ensure efficient, production-grade telemetry collection in Azure environments.
Key Features
01Integrates Azure Monitor Logs Ingestion API into Python applications
0231,721 GitHub stars
03Implements secure authentication using Azure Identity and DefaultAzureCredential
04Automates log batching and Gzip compression for optimal ingestion performance
05Configures Data Collection Endpoints (DCE) and Data Collection Rules (DCR)
06Supports high-throughput logging with asynchronous clients and parallel uploads
Use Cases
01Centralizing application logs from distributed Python microservices into Log Analytics
02Implementing custom telemetry for monitoring specialized business logic and audit events
03Automating the migration of local JSON log files to Azure Monitor for centralized analysis