{"id":43694231,"url":"https://github.com/faiscadev/ddlogs","last_synced_at":"2026-03-17T12:05:32.151Z","repository":{"id":330574365,"uuid":"1123233885","full_name":"faiscadev/ddlogs","owner":"faiscadev","description":"A CLI tool for tailing and querying Datadog logs","archived":false,"fork":false,"pushed_at":"2026-01-21T12:09:56.000Z","size":99,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-05T14:42:56.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faiscadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-26T12:57:18.000Z","updated_at":"2026-01-21T12:10:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/faiscadev/ddlogs","commit_stats":null,"previous_names":["vieiralucas/ddlogs","faiscadev/ddlogs"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/faiscadev/ddlogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faiscadev%2Fddlogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faiscadev%2Fddlogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faiscadev%2Fddlogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faiscadev%2Fddlogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faiscadev","download_url":"https://codeload.github.com/faiscadev/ddlogs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faiscadev%2Fddlogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30623494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T11:26:08.186Z","status":"ssl_error","status_checked_at":"2026-03-17T11:24:37.311Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-05T04:06:27.466Z","updated_at":"2026-03-17T12:05:32.105Z","avatar_url":"https://github.com/faiscadev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddlogs\n\nA CLI tool for tailing and querying Datadog logs, similar to `tail -f` for your Datadog logs.\n\n## Features\n\n- 🔍 Query logs with filters (service, source, host)\n- 👀 Follow mode for real-time log tailing\n- ⚙️ Config file support for storing credentials\n- 🌍 Multi-region Datadog support\n- 📊 Single-line JSON output per log\n- ⏱️ Respects Datadog API rate limits\n\n## Installation\n\n### Using Cargo\n\n```bash\ncargo install ddlogs\n```\n\n### Using install script\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/faiscadev/ddlogs/main/install.sh | sh\n```\n\n### Download pre-built binaries\n\nDownload the latest release from [GitHub Releases](https://github.com/faiscadev/ddlogs/releases).\n\n## Configuration\n\nFirst, configure your Datadog credentials:\n\n```bash\nddlogs configure\n```\n\nThis will prompt you for:\n- **Datadog API Key**\n- **Datadog Application Key**\n- **Datadog Site** (default: `datadoghq.com`)\n\nConfiguration is saved to `~/.config/ddlogs/config.toml`.\n\nAlternatively, you can set environment variables:\n```bash\nexport DD_API_KEY=your_api_key\nexport DD_APP_KEY=your_app_key\nexport DD_SITE=us5.datadoghq.com  # optional, defaults to datadoghq.com\n```\n\n## Usage\n\n### Basic log query (last hour)\n\n```bash\nddlogs\n```\n\n### Filter by service\n\n```bash\nddlogs --service web-api\n```\n\n### Filter by multiple criteria\n\n```bash\nddlogs --service nginx --host prod-01 --limit 50\n```\n\n### Custom Datadog query\n\n```bash\nddlogs --query \"status:error\"\nddlogs --query \"service:nginx AND status:error\"\n```\n\n### Follow mode (like `tail -f`)\n\n```bash\nddlogs --follow\nddlogs -f --service email-api\n```\n\n### Custom polling interval\n\n```bash\n# Poll every 15 seconds instead of default 12\nddlogs -f --interval 15\n```\n\n### Query historical logs\n\n```bash\n# Last 24 hours\nddlogs --since 24h\n\n# Last 7 days\nddlogs --since 7d --service api\n\n# Specific time range (ISO 8601 format)\nddlogs --from 2024-01-15T00:00:00Z --to 2024-01-15T12:00:00Z\n\n# Since a duration ago until a specific time\nddlogs --since 2d --to 2024-01-16T00:00:00Z\n```\n\nSupported duration units for `--since`: `s` (seconds), `m` (minutes), `h` (hours), `d` (days), `w` (weeks).\n\n### Limit number of results\n\n```bash\nddlogs --limit 50\n```\n\n### Pipe to jq for filtering\n\n```bash\nddlogs --service api | jq -r '.content.message'\n```\n\n## Options\n\n```\nUsage: ddlogs [OPTIONS] [COMMAND]\n\nCommands:\n  configure  Configure ddlogs with API credentials and site\n  help       Print this message or the help of the given subcommand(s)\n\nOptions:\n  -f, --follow               Follow mode - continuously poll for new logs\n      --service \u003cSERVICE\u003e    Filter by service\n      --source \u003cSOURCE\u003e      Filter by source\n      --host \u003cHOST\u003e          Filter by host\n  -q, --query \u003cQUERY\u003e        Raw Datadog query string\n  -l, --limit \u003cLIMIT\u003e        Number of logs to retrieve [default: 100]\n      --interval \u003cINTERVAL\u003e  Poll interval in seconds for follow mode [default: 12]\n      --from \u003cFROM\u003e          Start time (ISO 8601, e.g., \"2024-01-15T10:00:00Z\")\n      --to \u003cTO\u003e              End time (ISO 8601, e.g., \"2024-01-15T11:00:00Z\")\n      --since \u003cSINCE\u003e        Relative time range (e.g., \"1h\", \"30m\", \"7d\", \"2w\")\n  -h, --help                 Print help\n```\n\n## Rate Limits\n\nddlogs respects Datadog's API rate limits:\n- Default polling interval: **12 seconds** (300 requests/hour)\n- Datadog allows **2 requests per 10 seconds** for log queries\n- Adjust `--interval` if you hit rate limits\n\n## Development\n\n```bash\n# Build\ncargo build --release\n\n# Run tests\ncargo test\n\n# Run clippy\ncargo clippy\n```\n\n## License\n\nApache-2.0 License - see [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaiscadev%2Fddlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaiscadev%2Fddlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaiscadev%2Fddlogs/lists"}