跳到正文
Skillpedia
安全84k · #1409

cli-policy-audit

它能做什么

这项技能展示如何通过命令行搜索审计日志和请求历史。适合负责安全审查或合规检查的管理员。

适用场景

  • ✓当用户需要为安全或合规检查查看审计日志的时候。
  • ✓当用户想查找谁在什么时候改动了某项内容的时候。
  • ✓当用户需要导出某个时间范围内的审计记录的时候。

技能链接

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-policy-audit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-policy-audit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请显示上周某个用户的所有审计事件,并导出到文件。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能列出查看最新记录(tail)、搜索、导出和获取审计日志统计的命令,可按来源、操作者、动作和日期筛选。它也涵盖请求日志,并可按请求 ID、组合、状态码和耗时等条件筛选。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Inspect audit logs, manage access policies, view telemetry data, and review request history from the CLI. Filter by event type, user, or time range for compliance workflows.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

audit

Example:

omniroute audit

audit tail

Flags:

  • --source <s>
  • --follow
  • --limit <n>

Example:

omniroute audit tail

audit search <query>

Flags:

  • --source <s>
  • --since <ts>
  • --until <ts>
  • --limit <n>
  • --actor <id>
  • --action <a>

Example:

omniroute audit search <query>

audit export <file>

Flags:

  • --source <s>
  • --format <f>
  • --since <ts>
  • --until <ts>

Example:

omniroute audit export <file>

audit stats

Flags:

  • --source <s>
  • --period <p>

Example:

omniroute audit stats

audit get <id>

Flags:

  • --source <s>

Example:

omniroute audit get <id>

logs

Flags:

  • --follow
  • --filter <level>
  • --lines <n>
  • --timeout <ms>
  • --base-url <url>
  • --request-id <id>
  • --api-key <key>
  • --combo <name>
  • --status <code>
  • --duration-min <ms>
  • --duration-max <ms>
  • --export <path>

Example:

omniroute logs

policy

Example:

omniroute policy

policy list

Flags:

  • --kind <k>
  • --scope <s>

Example:

omniroute policy list

policy get <id>

Example:

omniroute policy get <id>

policy create

Flags:

  • --file <path>

Example:

omniroute policy create

policy update <id>

Flags:

  • --file <path>

Example:

omniroute policy update <id>

policy delete <id>

Flags:

  • --yes

Example:

omniroute policy delete <id>

policy evaluate

Flags:

  • --api-key <k>
  • --action <a>
  • --resource <r>
  • --context <json>

Example:

omniroute policy evaluate

policy export <file>

Example:

omniroute policy export <file>

policy import <file>

Flags:

  • --overwrite

Example:

omniroute policy import <file>

telemetry

Example:

omniroute telemetry

telemetry summary

Flags:

  • --period <p>
  • --compare-to <p>

Example:

omniroute telemetry summary

telemetry export

Flags:

  • --out <path>
  • --period <p>

Example:

omniroute telemetry export
常见问题

我能导出审计日志吗?

可以。export 命令可以按所选格式和日期范围把记录写入文件。

我能实时查看新事件吗?

可以。tail 命令有 follow 选项。

我能筛选请求日志吗?

可以。logs 命令可以按请求 ID、组合名称、状态码和耗时进行筛选。

详情

作者的原始描述

Inspect audit logs, manage access policies, view telemetry data, and review request history from the CLI. Filter by event type, user, or time range for compliance workflows.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1409
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能