- Home
- Skills
- DevOps & Cloud
- ECS Logging Audit (Free)
Works with the AI Agents you already use
ECS Logging Audit (Free)
by Erick CM
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
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:line | Current call | Verdict | Why |
|---|---|---|---|
| src/main.ts:37 | Logger.error('Failed to start...') | keep | already meaningful, format conversion only |
| key-value.service.ts:26 | console.error(err) | enrich | bare error, no context or outcome |
| key-value.service.ts:47 | console.log(updateKeyValueDto) | drop | dumps 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.