Works with the AI Agents you already use

    ECS Logging Audit (Free)

    by Erick CM

    2

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

    Free

    2 usesSecurity scanned
    ECS Logging Audit (Free)

    ECS Logging Audit (Free)

    Example session with this skill installed

    audit my logging

    • Read your context and instructions
    • Compiled the ecs logging audit

    Summary

    Audited 3 log calls in a NestJS 11 service (1,100 lines): 1 keep, 1 enrich, 1 drop, plus 1 data leak and 2 modules with no logging at all.

    Log call inventory

    File:lineCurrent callVerdictWhy
    src/main.ts:37Logger.error('Failed to start...')keepalready meaningful, format conversion only
    key-value.service.ts:26console.error(err)enrichbare error, no context or outcome
    key-value.service.ts:47console.log(updateKeyValueDto)dropdumps the full request DTO into logs (data leak)

    Risky logging

    1 call writes a whole request DTO: whatever a client sends lands raw in production output.

    The gap

    No structured logger installed; logs are plain text. Modules company-name-validation and health log nothing, so their failures would be invisible in Kibana. A finding beyond the table: the bootstrap catch never fires for database failures, because NestJS's default abortOnError exits the process first.

    Next steps

    • Fix the DTO leak now (one deleted line)
    • A full ECS retrofit for this stack: nestjs-pino with the official ECS formatter, service.name from env, Filebeat container input

    Connects securely to your tools. The creator never sees your data.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    • Free with an Agensi account

    Permissions

    No special permissions declared or detected

    Listed2 months ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free