测试与安全

anonymize-logs

elastic/integra…n-skills

Anonymize and sanitize customer-provided log files. Performs a line-by-line review and replaces all sensitive values inline, preserving log structure and format exactly — never reformats, re-indents, or restructures content. Use when sanitizing customer logs, sample events, or test fixtures. Invoke manually with /anonymize-logs.

  • 512 次安装
  • 16 星标
  • 收录于

安装命令

npx skills add https://github.com/elastic/integration-skills --skill anonymize-logs

SKILL.md

Anonymize Logs

Sanitize customer-provided logs so they are safe to share or commit. Replace identity only; keep the original structure, delimiters, quoting, field order, and line breaks.

Input may be a file or a single syslog / KV / NDJSON line. Output must match that shape — do not pretty-print, wrap, truncate, or “fix” values as part of sanitization.

What you provide

Input How to provide
Log file(s) to sanitize @-mention files or paste inline
Output location (optional) free text path, defaults to same directory with .sanitized suffix
In-place override (optional) say "in place" to overwrite the original

Golden rule — never reformat the content

Only replace sensitive values. Do not touch anything else.

Parsers and anyone reviewing the log depend on exact whitespace, delimiters, quoting, and line structure.