| Crates.io | ddlogs |
| lib.rs | ddlogs |
| version | 0.1.4 |
| created_at | 2025-12-26 14:11:32.17064+00 |
| updated_at | 2025-12-30 17:54:50.317745+00 |
| description | A CLI tool for tailing and querying Datadog logs |
| homepage | |
| repository | https://github.com/sisypha/ddlogs |
| max_upload_size | |
| id | 2005745 |
| size | 103,603 |
A CLI tool for tailing and querying Datadog logs, similar to tail -f for your Datadog logs.
cargo install ddlogs
curl -fsSL https://raw.githubusercontent.com/sisypha/ddlogs/main/install.sh | sh
Download the latest release from GitHub Releases.
First, configure your Datadog credentials:
ddlogs configure
This will prompt you for:
datadoghq.com)Configuration is saved to ~/.config/ddlogs/config.toml.
Alternatively, you can set environment variables:
export DD_API_KEY=your_api_key
export DD_APP_KEY=your_app_key
export DD_SITE=us5.datadoghq.com # optional, defaults to datadoghq.com
ddlogs
ddlogs --service web-api
ddlogs --service nginx --host prod-01 --limit 50
ddlogs --query "status:error"
ddlogs --query "service:nginx AND status:error"
tail -f)ddlogs --follow
ddlogs -f --service email-api
# Poll every 15 seconds instead of default 12
ddlogs -f --interval 15
ddlogs --limit 50
ddlogs --service api | jq -r '.content.message'
Usage: ddlogs [OPTIONS] [COMMAND]
Commands:
configure Configure ddlogs with API credentials and site
help Print this message or the help of the given subcommand(s)
Options:
-f, --follow Follow mode - continuously poll for new logs
--service <SERVICE> Filter by service
--source <SOURCE> Filter by source
--host <HOST> Filter by host
-q, --query <QUERY> Raw Datadog query string
-l, --limit <LIMIT> Number of logs to retrieve [default: 100]
--interval <INTERVAL> Poll interval in seconds for follow mode [default: 12]
-h, --help Print help
ddlogs respects Datadog's API rate limits:
--interval if you hit rate limits# Build
cargo build --release
# Run tests
cargo test
# Run clippy
cargo clippy
Apache-2.0 License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.