datadog

Query Datadog logs and list services from the command line.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/swtch1/dotfiles --skill datadog-swtch1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datadog
Source: https://github.com/swtch1/dotfiles/tree/main/.claude/skills/datadog
Command: npx skills add https://github.com/swtch1/dotfiles --skill datadog-swtch1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to query Datadog logs and monitoring resources directly from your command line, eliminating the need to navigate the Datadog web UI for common tasks.

Core Features & Use Cases

  • Log Searching: Efficiently search through Datadog logs using a powerful query syntax.
  • Service Discovery: Easily find available services within Datadog.
  • Incident Investigation: Quickly investigate production issues, errors, and incidents by filtering logs by service, time, and status.
  • Use Case: When a user reports an error in the api-gateway service, you can use this Skill to search for error logs within that service for the last hour to pinpoint the cause.

Quick Start

Search for logs related to 'service:api-gateway error' from the last hour.

Frequently Asked Questions about datadog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Datadog logs directly from the command line?

You can query Datadog logs directly from the command line by using a CLI tool that filters logs by service, time, status, and custom queries. It requires setting Datadog API and Application keys as environment variables for authentication.

What is the best way to investigate production errors in specific services using Datadog?

Investigating production errors in specific services is done by searching Datadog logs filtered by service name and error status over a specific time range, such as the last hour, which helps pinpoint the incident cause without using the web UI.

Do I need Datadog API keys to search logs via the command line?

Yes, you need both Datadog API and Application keys to search logs via the command line. These keys must be configured as environment variables to authenticate your CLI requests and access monitoring resources.

Can I list available Datadog services without navigating the web UI?

Yes, you can list available Datadog services without the web UI by using command-line service discovery features. This enables quick identification of services for log searching and incident investigation directly from your terminal.

How does command-line log searching compare to using the Datadog web UI for incident investigation?

Command-line log searching eliminates the navigation overhead of the Datadog web UI for common incident investigation tasks. It provides direct CLI access to filter production errors by service, time, and status for faster troubleshooting.