Repository navigation
Quick Start
Avinash Gupta edited this page Oct 18, 2026
·
1 revision
You need rdstail installed and AWS credentials in your environment (profile, SSO, env vars or an instance role) that can read RDS logs.
# live tail; the engine is auto-detected
rdstail tail -i orders-db --region us-east-1
# only errors and worse
rdstail tail -i orders-db --region us-east-1 --min-severity ERROR
# last hour, primary + replica together, filtered by regex
rdstail tail -i orders-db -i orders-db-replica --region us-east-1 --since 1h --grep 'deadlock|timeout'
# structured output for jq
rdstail tail -i orders-db --region us-east-1 --format ndjson | jq -r '[.severity, .message] | @tsv'tail keeps nothing on disk. Stop it and it starts fresh next time.
rdstail dump -i orders-db --region us-east-1 --since 24h -o incident.ndjson.gzdump fetches the window, writes NDJSON (gzipped for .gz) and exits.
Read-only IAM, no state. Analyse the file with DuckDB or
attach it to a ticket.
The wizard lists your instances, lets you pick instances and a sink, and writes a validated config:
rdstail initOr write the smallest useful config yourself:
# rdstail.yaml
sources:
- type: rds
region: us-east-1
instances: [orders-db] # engine auto-detected
sinks:
- name: archive
type: s3
s3:
bucket: my-log-bucket
region: us-east-1
prefix: rds/
state:
type: sqlite
path: ./state.db
runtime:
poll_interval: 10s
start_from: end # only new lines; `beginning` backfills what RDS still keepsThen:
rdstail iam-policy -c rdstail.yaml # least-privilege policy to attach
rdstail validate -c rdstail.yaml --deep # checks credentials, instances, bucket
rdstail run -c rdstail.yamlObjects appear under
s3://my-log-bucket/rds/<instance>/<engine>/<log file>/YYYY/MM/DD/. Stop
and restart run and it resumes from its checkpoints, without re-shipping or
skipping anything.
curl -s localhost:9090/metrics | grep -E '^rdstail_(logs_processed_total|dlq_depth)'
sqlite3 state.db "SELECT instance_id, log_file, updated_at FROM checkpoints;"
aws s3 ls s3://my-log-bucket/rds/ --recursive | tail- Every database in the account, not just one: Scaling
- Run it as a service: Production Setup
- Search, dashboards and alerts on what you ship: Recipes
- Other destinations (Kafka, webhook, Datadog, Loki…): Configuration · Integrations