Skip to content

Command-line Datadog Logs skill for searching, aggregating, archiving, and cutting log ingestion costs.

CCM score
66 of 100
skills.sh installs
2.4K
GitHub stars
186
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers log search, aggregation, pattern detection, saved views, archive configuration, and log-based metrics via the Pup CLI
  • Includes search syntax reference, grok and remapper processor examples, and exclusion filter templates for health checks, debug logs, and static assets
  • Provides a sanitization snippet that redacts credit card and SSN patterns, plus scrubbing rules for hashing sensitive fields
  • Designed for engineers who manage Datadog log pipelines and need to control indexing costs

Install

$ npx -y skills add datadog-labs/agent-skills --skill dd-logs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Datadog Logs

Search, process, and archive logs with cost awareness.

Prerequisites

Datadog Pup should already be installed. See Setup Pup if not.

Command Execution Order (Token-Efficient)

For scoped commands, use this order:

  1. Check context first (prior outputs, conversation, saved values).
  2. If a required value is missing, run a discovery command first.
  3. If still ambiguous, ask the user to confirm.
  4. Then run the target command.
  5. Avoid speculative commands likely to fail.

Quick Start

pup auth login

Search Logs

# Basic search
pup logs search --query="status:error" --from="1h"

# With filters
pup logs search --query="service:api status:error" --from="1h" --limit 100

# JSON output
pup logs search --query="@http.status_code:>=500" --from="1h"

Search Syntax

QueryMeaning
errorFull-text search
status:errorTag equals
@http.status_code:500Attribute equals
@http.status_code:>=400Numeric range
service:api AND env:prodBoolean
@message:*timeout*Wildcard

Commands

Details

Repository
github.com/datadog-labs/agent-skills
Category
DevOps & Cloud
First seen
May 16, 2026

More from datadog-labs/agent-skills

All 5

Similar to Dd Logs

More DevOps & Cloud