Skip to content
Back to skills

Observability Structured Logging

ASecurity

JSON logs with trace correlation and disciplined fields you can actually query at 3am.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsbashgitdevops

Works with

  • cli

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add aniruddhaadak80/skills --skill observability-structured-logging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Observability Structured Logging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Observability Structured Logging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aniruddhaadak80-observability-structured-logging/badge)](https://www.skillsdirectory.com/skills/aniruddhaadak80-observability-structured-logging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: observability-structured-logging
description: "JSON logs with trace correlation and disciplined fields you can actually query at 3am."
---
# Adopt structured logging that answers questions

> JSON logs with trace correlation and disciplined fields you can actually query at 3am.

**Track:** ☁️ DevOps & Cloud · **Domain:** Observability · **Level:** foundation · **~25 min**

**Who this is for:** DevOps Engineers, SREs, Cloud Architects, Platform Engineers

## When to Use This Skill

JSON logs with trace correlation and disciplined fields you can actually query at 3am.
Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.

## Steps

1. Log JSON with timestamp, level, service, route, request_id, user_id
2. Propagate trace IDs across services and into log lines
3. Reserve ERROR for things needing action; INFO is default heartbeat
4. Never log secrets or PII; enforce with lint rules and sampling reviews
5. Sample high-volume debug logs; keep 100% of errors
6. Practice one query drill: 'find all errors for this user yesterday'

## Common Pitfalls

- String-interpolated logs unsearchable in aggregators
- Stack traces swallowed into single-line messages

## Commands

**Install with skills CLI**
```bash
npx skills add aniruddhaadak80/skills --skill observability-structured-logging
```

**Install globally**
```bash
npx skills add aniruddhaadak80/skills --skill observability-structured-logging -g
```

---

Part of [aniruddhaadak80/skills](https://github.com/aniruddhaadak80/skills) · Browse all at https://skills.sh/aniruddhaadak80/skills

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…