# ECS Logging Audit (Free)

> Read-only logging audit before an ELK rollout: inventories every log call with keep/enrich/drop verdicts and flags secrets or PII in logs.

ECS Logging Audit (Free) is a free AI agent skill on Agensi by Erick CM, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Erick CM](https://www.agensi.io/creators/erick-cm)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Uses: 2
- Version: 1.0
- Last updated: 2026-09-29
- Security: scan passed (2026-09-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ecs-logging-audit-free
- Tags: devops, security, elasticsearch, logging, audit

## About this skill

Getting an app's logs into Elasticsearch starts with knowing what you have. Most codebases fail that check in interesting ways: console.log(dto) calls that dump whatever a client sends, error handlers that log a bare err with no context, and entire modules where failures never get logged at all.

This skill runs that audit in one command. It is read-only and changes nothing.

### What it does
- Detects your stack, logger, and runtime
- Inventories every log call into a keep / enrich / drop table with reasons
- Flags secrets, tokens, and personal data being written to logs
- Lists the modules with no logging at all, where failures would be invisible in Kibana
- Summarizes what a full ECS retrofit would involve for your stack

### Proven on a real service
On the first production app this ran against, the audit found the app's only error log was dead code: NestJS's default abortOnError exits the process before bootstrap().catch ever fires.

### Free vs full
This audit edition is free and read-only. The full version, ECS Logging Retrofit (also on Agensi), applies the changes: converts calls to ECS JSON with the official formatter for your logger, rewrites messages so variables become queryable fields, and generates a working filebeat.ecs.yml. MIT licensed; source at github.com/Erick-CM/ecs-logging-audit.

## Known limitations

Audit only. Does not modify source code or generate Filebeat/Logstash configuration files. Requires access to the full application source code to perform grepping.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ECS Logging Audit (Free) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the ECS Logging Audit help prepare my application for Elasticsearch?

This skill performs a read-only analysis of your codebase to inventory log calls, flag sensitive data (PII/secrets), and identify 'blind spots' where logging is missing, helping you prepare for a clean ELK stack integration.

### Which programming languages and logging frameworks are supported?

The skill is designed to work with common backend stacks (like Node.js/NestJS) and popular logging libraries; it automatically detects your runtime and logger configuration during the scan.

### Will this skill automatically change my code to comply with ECS standards?

No, this is a read-only audit tool that identifies issues and provides a 'keep/enrich/drop' verdict table without modifying a single line of your source code.

### What is the difference between this free Audit skill and the full Retrofit version?

The free version provides a comprehensive audit report and a full ECS retrofit summary, while the full 'ECS Logging Retrofit' skill (available separately) automates the code rewrites and Filebeat configuration.

### Are there any specific security permissions or setup steps required to run the audit?

Because it is read-only and runs via a single command, you only need to grant it access to read your repository; no complex environment configuration or database access is required.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
