sickn33/antigravity-awesome-skills/azure-monitor-ingestion-py
- community
Checking that the SKILL.md file is still in the repository.
Azure Monitor Ingestion SDK for Python. Use for sending custom logs to Log Analytics workspace via Logs Ingestion API.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-monitor-ingestion-pySKILL.md
Azure Monitor Ingestion SDK for Python
Send custom logs to Azure Monitor Log Analytics workspace using the Logs Ingestion API.
Installation
Environment Variables
Prerequisites
Before using this SDK, you need:
- Log Analytics Workspace — Target for your logs
- Data Collection Endpoint (DCE) — Ingestion endpoint
- Data Collection Rule (DCR) — Defines schema and destination
- Custom Table — In Log Analytics (created via DCR or manually)
Authentication
Use an authorized endpoint/DCR/stream and schema, with scoped identity permissions; DCE versus DCR ingestion endpoints depend on setup. The 2024 timestamps below are historical sample data, not a current live-ingestion probe. Use approved synthetic current timestamps for validation, redact PII/secrets before upload and confirm retention/charges. Close both client and credential, including failure paths; no logs should be uploaded simply to validate this guide.
Upload Custom Logs
Upload from JSON File
Custom Error Handling
Handle partial failures with a callback:
Incomplete uploads
An on_error callback can suppress the default exception. Persist a bounded, protected failure summary and report the upload as partial/failed; never silently discard failed logs or label the whole batch successful. Retry only classified transient failures with bounded backoff, reconciling ambiguous outcomes and duplicate-ingestion impact.
Async Client
Sovereign Clouds
Batching Behavior
The SDK automatically:
- Splits logs into chunks of 1MB or less
- Compresses each chunk with gzip
- Uploads chunks in parallel
SDK chunking does not bound the application's input memory or total ingestion cost. Limit input bytes/rows, confirm the installed version's batching/concurrency and handle partial success.
Client Types
| Client | Purpose | |
|---|---|---|
LogsIngestionClient | Sync client for uploading logs | |
LogsIngestionClient (aio) | Async client for uploading logs |
Key Concepts
| Concept | Description | |
|---|---|---|
| DCE | Data Collection Endpoint — ingestion URL | |
| DCR | Data Collection Rule — defines schema, transformations, destination | |
| Stream | Named data flow within a DCR | |
| Custom Table | Target table in Log Analytics (ends with _CL) |
DCR Stream Name Format
Stream names follow patterns:
Custom-<TableName>_CL— For custom tablesMicrosoft-<TableName>— For built-in tables
Best Practices
- Use DefaultAzureCredential for authentication
- Handle errors gracefully — use
on_errorcallback for partial failures - Include TimeGenerated — Required field for all logs
- Match DCR schema — Log fields must match DCR column definitions
- Use async client for high-throughput scenarios
- Batch uploads — SDK handles batching, but send reasonable chunks
- Monitor ingestion — Check Log Analytics for ingestion status
- Use context manager — Ensures proper client cleanup
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/azure-monitor-ingestion-py/SKILL.md
Popularity
- Repository stars
- 26,616
- Repository forks
- 4,536
- Repository npm downloads, 7 days
- 6,478
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/azure-monitor-ingestion-py)