azure-monitor-ingestion-py
Skill by sickn33
Sends custom logs to an Azure Monitor Log Analytics workspace through the Logs Ingestion API using the Python SDK. Intended for developers who already have a Data Collection Endpoint, Data Collection Rule and custom table set up.
Install azure-monitor-ingestion-py
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-monitor-ingestion-py ~/.claude/skills/azure-monitor-ingestion-pyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install azure-monitor-ingestion-py in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-monitor-ingestion-py ~/.gemini/antigravity-cli/skills/azure-monitor-ingestion-pyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-monitor-ingestion-py in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill shows how to send custom logs to an Azure Monitor Log Analytics workspace with the Azure Monitor Ingestion SDK for Python. It covers the Logs Ingestion API through the LogsIngestionClient, using a Data Collection Endpoint, a Data Collection Rule and a stream name set in environment variables. Examples include uploading a list of dictionaries or a JSON file, handling partial failures with an on_error callback, and using the async client.
The SDK splits logs into chunks of 1MB or less, compresses each chunk with gzip and uploads chunks in parallel. The source lists prerequisites: a Log Analytics workspace, a DCE, a DCR and a custom table. It recommends DefaultAzureCredential with scoped permissions, and it includes sovereign cloud setup for Azure Government. It also asks users to redact PII and secrets before upload and to confirm retention and charges.
Written from the project's SKILL.md and checked against it.
What it can do
- Upload custom logsSends a list of log records to a Log Analytics custom table through LogsIngestionClient.upload.
- Upload from JSON fileLoads log records from a JSON file and uploads them to the configured stream.
- Handle partial failuresUses an on_error callback to collect failed logs and retry them.
- Async uploadsUses the aio LogsIngestionClient with asyncio for asynchronous uploads.
- Sovereign cloud authenticationShows how to set the authority host and credential scopes for Azure Government.
- Automatic batchingSplits logs into gzip-compressed chunks of 1MB or less and uploads them in parallel.
What you need
- Python
- Azure subscription with a Log Analytics workspace
- Data Collection Endpoint (DCE)
- Data Collection Rule (DCR) and custom table
- azure-monitor-ingestion and azure-identity packages
Try asking
- Show me how to upload custom logs to my Log Analytics workspace in Python.
- Write a Python script that retries failed log uploads using an on_error callback.
- Upload logs from a JSON file to an Azure Monitor custom table using the Ingestion SDK.
Good to know
- SDK chunking does not bound application input memory or total ingestion cost.
- An on_error callback can suppress the default exception, so failures must be handled explicitly.
- Validation should use approved synthetic data, not real logs.
- Log fields must match the DCR column definitions.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/azure-monitor-ingestion-py/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to azure-monitor-ingestion-py
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
azure-monitor-ingestion-py: common questions
Does the SDK handle large log batches automatically?
Yes. The source says the SDK splits logs into chunks of 1MB or less, compresses each chunk with gzip and uploads chunks in parallel. It still advises sending reasonable chunks and limiting input size.
What does TimeGenerated do in the uploaded logs?
The source says TimeGenerated is a required field for all logs. Each log record should include it.
Can this skill be used for Azure Government?
The source includes a sovereign clouds example for Azure Government. It sets AzureAuthorityHosts.AZURE_GOVERNMENT and a monitor.azure.us credential scope.
How do I install azure-monitor-ingestion-py?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is azure-monitor-ingestion-py free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is azure-monitor-ingestion-py safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to azure-monitor-ingestion-py?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
