anonymize-logs

Anonymize sensitive values in NDJSON, Syslog, and key-value log files.

15|5|Updated May 11, 2026
One-click install
npx skills add https://github.com/elastic/integration-skills --skill anonymize-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anonymize-logs
Source: https://github.com/elastic/integration-skills/tree/main/skills/anonymize-logs
Command: npx skills add https://github.com/elastic/integration-skills --skill anonymize-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Anonymize and sanitize customer-provided log files before they are committed to source control. Performs a line-by-line review and replaces all sensitive values inline, preserving log structure and format exactly — never re-indents, re-formats, or restructures content. Invoke manually with /anonymize-logs.

Core Features & Use Cases

  • Line-by-line replacement of sensitive values (authentication artifacts, personal identifiers, and infrastructure identifiers) while preserving field names, delimiters, and layout.
  • Maintains exact whitespace, delimiters, and line structure to ensure downstream parsers continue to work without changes.
  • Supports common log formats (NDJSON, Syslog, key-value logs) and multiline entries; suitable for test fixtures, sample events, and security/data privacy reviews.

Quick Start

Provide log files to sanitize and run the anonymize-logs workflow to generate sanitized outputs.

Frequently Asked Questions about anonymize-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I mask sensitive data in log files before committing them?

Mask sensitive data in log files by performing line-by-line replacements of personal, authentication, and infrastructure identifiers with placeholders, preserving the original field names and delimiters for downstream parsing.

Can I sanitize NDJSON and Syslog logs without altering the structure?

Sanitize NDJSON and Syslog logs without altering structure by replacing sensitive values inline while maintaining exact whitespace, delimiters, and line layout, ensuring downstream parsers continue to work without changes.

What is the best way to anonymize log data for pipeline testing fixtures?

Anonymize log data for pipeline testing fixtures by replacing personal and infrastructure identifiers with placeholders across multiline entries, generating sanitized sample events that maintain the exact format of the original logs.

Does log masking support key-value formats and multiline log entries?

Log masking supports key-value formats, NDJSON, Syslog, and multiline entries by performing line-by-line reviews that replace sensitive values inline without re-indenting, re-formatting, or restructuring the content.

Why should I use a log sanitization tool instead of manually redacting sensitive values?

Use a log sanitization tool instead of manual redaction to automatically perform line-by-line replacements of authentication artifacts and identifiers while guaranteeing exact whitespace and delimiter preservation for security reviews.