dd-logs

dd-logs is a skill for Claude Code from datadog-labs/agent-skills. It costs 85 tokens per session (1,565 once invoked), scanned A, a copy of dd-logs, MIT.

A guide for working with Datadog logs, which are records of events produced by applications and systems. It covers searching, processing, archiving, log-based metrics, and controlling storage costs.

In plain words
What is it for?
Use it to search recent errors, filter logs by service or status, list archives, and work with log configurations.
Why use it?
It makes it easier to find errors and narrow results with filters, while keeping log storage and configuration in mind. It requires the Datadog command-line tool called Pup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills plugin — 82 skills shipped together

Good fit Use it to search recent errors, filter logs by service or status, list archives, and work with log configurations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datadog-labs/agent-skills/dd-logs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add datadog-labs/agent-skills --skill dd-logs
Clone the repo
git clone --depth 1 https://github.com/datadog-labs/agent-skills

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 82 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dd-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/datadog-labs/agent-skills/dd-logs/github.svg)](https://agentmods.dev/skills/datadog-labs/agent-skills/dd-logs)
Your own site
<a href="https://agentmods.dev/skills/datadog-labs/agent-skills/dd-logs"><img src="https://agentmods.dev/badge/skills/datadog-labs/agent-skills/dd-logs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dd-logs

Your own site · 80×15
<a href="https://agentmods.dev/skills/datadog-labs/agent-skills/dd-logs"><img src="https://agentmods.dev/badge/skills/datadog-labs/agent-skills/dd-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 5 Nov 2026
  • Snyk warn 4 Nov 2026
How audits are shown
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01565
Opus 5.5 $0.00034 $0.00626
Sonnet 5.5 $0.00017 $0.00313
Haiku 4.5 $0.00009 $0.00156

Measured 9d ago against content hash 2ba35259c643, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dd-logs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to dd-logs — 52 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

dd-logs/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Query Meaning
error Full-text search
status:error Tag equals
@http.status_code:500 Attribute equals
@http.status_code:>=400 Numeric range
service:api AND env:prod Boolean
@message:*timeout* Wildcard

Commands

pup logs search --query="status:error" --from="1h"
pup logs list
pup logs aggregate --query="*" --from="1h" --compute="count" --group-by="service"
pup logs patterns --query="status:error" --pattern-field="message" --from="1h"
pup logs query --query="service:api" --from="1h"
pup logs saved-views list

pup logs archives list
pup logs archives get <archive-id>
pup logs custom-destinations list
pup logs metrics list
pup logs metrics get <metric-id>

# Restriction queries are a top-level command, not a logs subcommand.
pup logs-restriction list

--compute and --group-by on aggregate, and the pattern flags, follow the installed pup logs <command> --help if it disagrees with the examples above.

Common Processors

{
  "name": "API Logs",
  "filter": {"query": "service:api"},
  "processors": [
    {
      "type": "grok-parser",
      "name": "Parse nginx",
      "source": "message",
      "grok": {"match_rules": "%{IPORHOST:client_ip} %{DATA:method} %{DATA:path} %{NUMBER:status}"}
    },
    {
      "type": "status-remapper",
      "name": "Set severity",
      "sources": ["level", "severity"]
    },
    {
      "type": "attribute-remapper",
      "name": "Remap user_id",
      "sources": ["user_id"],
      "target": "usr.id"
    }
  ]
}

Read the full file on GitHub · 225 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +5 lines · +68 tokens per session 2ba35259c643
  2. 26d ago Changed · +7 lines aa680180c5a6
  3. 3mo ago First seen · 213 lines · 17 tokens per session scan A fe3c4080b7bc

Subscribe to this mod's changes

dd-logs is a skill published in the GitHub repository datadog-labs/agent-skills (188 stars, last pushed 6d ago), licensed MIT. It adds 85 tokens to every session and 1,565 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to dd-logs, differing in 52 lines, and is treated as a copy.

Related

dd-logs compared with skills from other repositories

dd-logs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dd-logsdatadog-labs/agent-skillsSkill1886d agoMITA85Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code