datadoglisted
Install: claude install-skill jjmartres/ai-coding-agents
# Datadog
This skill will help you to interact with Datadog, through the unofficial datadog-cli to search Datadog logs, query metrics, tail logs in real-time, trace distributed requests, investigate errors, compare time periods, find log patterns, check service health, or export observability data.
## When to Use This Skill
- Trigger phrases include:
- "search logs"
- "tail logs"
- "query metrics"
- "check Datadog"
- "find errors"
- "trace request"
- "compare errors"
- "what services exist"
- "log patterns"
- "CPU usage"
- "service health"
- "get service activity"
## How to Use
### Log Search
```bash
datadog logs search --query "<query>" [--from <time>] [--to <time>] [--limit <n>] [--sort <order>]
```
**Examples:**
```bash
datadog logs search --query "status:error" --from 1h
datadog logs search --query "service:api status:error @http.status_code:500" --from 1h
```
### Live Tail (Real-time Streaming)
Stream logs as they arrive. Press Ctrl+C to stop.
```bash
datadog logs tail --query "<query>" [--interval <seconds>]
```
**Examples:**
```bash
datadog logs tail --query "status:error"
datadog logs tail --query "service:api" --interval 5
```
### Trace Correlation
Find all logs for a distributed trace across services.
```bash
datadog logs trace --id "<trace-id>" [--from <time>] [--to <time>]
```
**Example:**
```bash
datadog logs trace --id "abc123def456" --from 24h
```
### Log Context
Get logs before and after a specific timestamp to under