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:
- Check context first (prior outputs, conversation, saved values).
- If a required value is missing, run a discovery command first.
- If still ambiguous, ask the user to confirm.
- Then run the target command.
- Avoid speculative commands likely to fail.
Quick Start
Search Logs
Search Syntax
Configuration APIs
Available log configuration commands in pup 0.42.0:
Common Processors
Exclusion Filters (Cost Control)
Index only what matters:
High-Volume Exclusions
Archives
Store logs cheaply for compliance:
Rehydrate (Restore)
Log-Based Metrics
Create metrics from logs (cheaper than indexing):
Cardinality warning: Group by bounded values only.


