Repository navigation
Home
Avinash Gupta edited this page Oct 18, 2026
·
2 revisions
RDS logs straight from the RDS API to S3, Kafka, an HTTP webhook or stdout. No CloudWatch Logs in the middle. One static binary, one YAML file, 85–95 % cheaper than the CloudWatch export path. Supports PostgreSQL, MySQL and MariaDB on RDS, and Aurora PostgreSQL / MySQL instances.
brew install avinash-gupta-rdz/tap/rdstail
rdstail tail -i my-db --region us-east-1 --min-severity ERROR # live errors, no config| You want to… | Go to |
|---|---|
| Install it | Installation |
| See logs in 30 seconds, then ship them in 5 minutes | Quick Start |
| Understand the config file | Configuration |
| Run it for real: IAM, systemd, Docker, Kubernetes, upgrades | Production Setup |
| Cover many databases, regions and accounts | Scaling |
| Tune for busy databases and big fleets | Performance and Throughput |
| Watch rdstail itself | Monitoring |
| Read, search and alert on the logs (no log platform needed) | Recipes |
| Send logs to Datadog, Splunk, Loki, Elastic… | Integrations |
Get alerted on DROP TABLE, GRANT, failed logins |
Security Detections |
| Fix something | Troubleshooting · FAQ |
| You have… | Start with | Time |
|---|---|---|
| Nothing, just a database to debug |
rdstail dump, then DuckDB on the dump file |
2 min |
| An S3 archive written by rdstail | Athena or DuckDB | 5 min |
| A spare VM / Docker host, want search + dashboards + alerts | Loki + Grafana stack | 10 min |
| Datadog, Splunk, Elastic, Loki, Axiom, Better Stack | Integrations | 5 min |
| Audit / compliance requirements | Audit logs → immutable S3 | 30 min |
RDS API (DescribeDBLogFiles / DownloadDBLogFilePortion)
│
▼
rdstail: poll → parse (timestamp, severity, multi-line) → batch
│ checkpoint advances only after the sink durably ACKs
▼
S3 · Kafka · HTTP · stdout ──▶ Athena / DuckDB / Loki / Datadog / your SIEM
- At-least-once, never silently drops. Checkpoints advance after a durable sink ACK; failed batches park in a dead-letter queue you can replay.
- Handles RDS's quirks. Hourly rotation, the 1 MB response cap, the MySQL error-log copy/truncate cycle, and reboots/failovers that lose the end of a file.
- No database credentials and no network path to the DB. It only uses the RDS control-plane API.
rdstail stays a shipper. It never runs queries, dashboards or alert rules itself; the recipes wire those up with tools you can swap out.
README · Full config reference · Commands · Architecture · Changelog · Roadmap · Releases