azure-monitor-ingestion-py
使用 Python 将日志发送到 Azure Monitor
团队需要可靠示例来将自定义日志发送到 Azure Monitor。此技能提供用于身份验证、上传、重试、异步客户端和主权云终结点的 Python SDK 模式。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "azure-monitor-ingestion-py" from https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py.md and its manifest at https://skillstore.io/api/skills/sickn33-azure-monitor-ingestion-py/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“azure-monitor-ingestion-py”。 我需要将 Python 服务事件发送到 Log Analytics 自定义表。
预期结果:
一份设置清单,其中包含所需 Azure 资源、环境变量名称、身份验证方法和简单上传流程。
正在使用“azure-monitor-ingestion-py”。 我的上传可能会部分失败,我需要一个重试计划。
预期结果:
一份可靠性计划,用于捕获失败记录、报告失败原因、仅重试失败条目,并将架构验证保持独立。
正在使用“azure-monitor-ingestion-py”。 我部署在 Azure Government 中,需要正确的引入配置。
预期结果:
一份指导,用于识别需要为租户检查的政府引入终结点模式、authority host 和 Monitor 凭据作用域。
安全审计
安全All 33 static findings are false positives caused by Markdown formatting, standard Azure endpoint examples, or explicit configuration reads. No prompt injection, malicious command execution, credential exfiltration, or reconnaissance intent was found.
风险因素
⚙️ 外部命令 (23)
🌐 网络访问 (3)
📁 文件系统访问 (1)
🔑 环境变量 (4)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-azure-monitor-ingestion-py/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-azure-monitor-ingestion-py.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). azure-monitor-ingestion-py security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py/audits/5BibTeX 引用
@techreport{sickn33-sickn33-azure-monitor-ingestion-py-2026,
author = {sickn33},
title = {azure-monitor-ingestion-py security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "azure-monitor-ingestion-py security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/sickn33-azure-monitor-ingestion-py/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-azure-monitor-ingestion-py:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
添加自定义应用程序遥测
使用 Python 示例将结构化应用程序事件发送到 Log Analytics 自定义表。
构建运营日志管道
在准备将服务日志引入 Azure Monitor 时,使用重试和批处理指导。
支持政府云日志记录
调整主权云示例,以用于 Azure Government 引入终结点和凭据作用域。
试试这些提示
使用此技能创建一个基本 Python 示例,将三条自定义日志记录上传到 Azure Monitor。包含所需的环境变量。
使用此技能概述一个 Python 流程,该流程从 JSON 文件读取日志,并使用 Azure Monitor Ingestion SDK 上传它们。
使用此技能为部分失败设计上传错误处理。说明应如何收集失败记录并重试。
使用此技能比较高吞吐量 Python 服务的同步和异步引入。如有需要,包含 Azure Government 终结点注意事项。
最佳实践
- 使用 DefaultAzureCredential,并仅授予所需的 Azure Monitor 引入权限。
- 包含 TimeGenerated,并确保每条记录都与 DCR 表架构保持一致。
- 明确处理部分失败,并在 Log Analytics 中验证引入结果。
避免
- 不要在共享源文件中硬编码特定于租户的终结点、规则标识符或流名称。
- 不要在生产管道中忽略上传错误而不进行单独监视。
- 不要发送包含机密或超出已批准 DCR 架构字段的记录。
常见问题
此技能会创建 Azure Monitor 资源吗?
它引用哪些 Python 包?
它可以从文件上传记录吗?
它支持异步引入吗?
它可以与 Azure Government 一起使用吗?
生产使用前应验证什么?
开发者详情
作者
sickn33许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
仓库
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-monitor-ingestion-py引用
f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526
维护新鲜度
2026/7/28
使用量
6 次下载 · 162 次浏览
文件结构
📄 SKILL.md