OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add datadog-labs/agent-skills --skill dd-logs
Log management - search, archives, metrics, and cost control.
npx skills add datadog-labs/agent-skills --skill dd-logs
Search, process, and archive logs with cost awareness.
Datadog Pup should already be installed. See Setup Pup if not.
For scoped commands, use this order:
| 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 |
Available log configuration commands in pup 0.42.0:
Index only what matters:
| Exclude | Query |
|---|---|
| Health checks | @http.url:"/health" OR @http.url:"/ready" |
| Debug logs | status:debug |
| Static assets | @http.url:*.css OR @http.url:*.js |
| Heartbeats | @message:*heartbeat* |
Store logs cheaply for compliance:
Create metrics from logs (cheaper than indexing):
Cardinality warning: Group by bounded values only.
| Problem | Fix |
|---|---|
| Logs not appearing | Check agent, pipeline filters |
| High costs | Add exclusion filters |
| Search slow | Narrow time range, use indexes |
| Missing attributes | Check grok parser |