azure-monitor-ingestion-py
Azure Monitor Ingestion SDK for Python. Use for sending custom logs to Log Analytics workspace via Logs Ingestion API.
npx skills add majiayu000/claude-skill-registry --skill azure-monitor-ingestion-py --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Azure Monitor Ingestion SDK for Python Send custom logs to Azure Monitor Log Analytics workspace using the Logs Ingestion API. ## Installation ```bash pip install azure-monitor-ingestion pip install azure-identity ``` ## Environment Variables ```bash # Data Collection Endpoint (DCE) AZURE_DCE_ENDPOINT=https://<dce-name>.<region>.ingest.monitor.azure.com # Data Collection Rule (DCR) immutable ID AZURE_DCR_RULE_ID=dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Stream name from DCR AZURE_DCR_STREAM_NAME=Custom-MyTable_CL ``` ## Prerequisites Before using this SDK, you need: 1. **Log Analytics Workspace** — Target for your logs 2. **Data Collection Endpoint (DCE)** — Ingestion endpoint 3. **Data Collection Rule (DCR)** — Defines schema and destination 4. **Custom Table** — In Log Analytics (created via DCR or manually) ## Authentication ```python from azure.monitor.ingestion import LogsIngestionClient from azure.identity import DefaultAzureCredential import os client = LogsIngestionClient( endpoint=os.environ["AZURE_DCE_ENDPOINT"], credential=DefaultAzureCredential() ) ``` ## Upload Custom Logs ```python from azure.monitor.ingestion import LogsIngestionClient from azure.identity import Defau
- Installation
- Environment Variables
- Prerequisites
- Authentication
- Upload Custom Logs
- Upload from JSON File
- Custom Error Handling
- Ignore Errors
- Async Client
- Sovereign Clouds
- Batching Behavior
- Client Types
- Key Concepts
- DCR Stream Name Format
pip install azure-monitor-ingestion pip install azure-identity Data Collection Endpoint (DCE) Data Collection Rule (DCR) immutable ID Stream name from DCR
What does the azure-monitor-ingestion-py skill do?
Azure Monitor Ingestion SDK for Python. Use for sending custom logs to Log Analytics workspace via Logs Ingestion API.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill azure-monitor-ingestion-py --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
