Repository navigation
FAQ
No. rdstail reads the logs RDS keeps on the instance through the RDS API. You can turn off "Log exports" to CloudWatch for those logs and stop paying CloudWatch ingestion. CloudWatch metrics (CPU, connections) are unaffected.
Typically 85–95 % compared with CloudWatch Logs export, because there's no
CloudWatch ingestion or storage, just S3 PUTs and storage. Get a number for
your own fleet: rdstail cost-estimate --region us-east-1.
PostgreSQL, MySQL and MariaDB on RDS, plus Aurora PostgreSQL and Aurora MySQL instances. Engines are detected automatically. Oracle and SQL Server aren't supported.
No. It uses only the RDS control-plane API (DescribeDBLogFiles,
DownloadDBLogFilePortion, DescribeDBInstances, DescribeEvents). It can
run anywhere with AWS credentials, in any VPC or account.
Log files are read through the RDS API from the instance's log directory;
rdstail never connects to the database and runs no queries. The load that matters is what the
logging settings cost the engine (e.g. general_log). See
Performance.
At poll_interval: 5s, p50 ≈ 3.5 s and p95 ≈ 6–8 s from RDS writing a line
to the sink ACKing it, when the API isn't throttled. A single very busy
file (> ~1 GB/hour) can't be tailed in real time by any RDS-API reader.
Not silently. Checkpoints advance only after a durable sink ACK, failed
batches park in a replayable DLQ, and rotation, truncation and reboots are
handled explicitly. Two caveats: lines that RDS itself loses on a crash or
failover are gone for every reader, and MySQL hours that RDS purges before
rdstail reads them (e.g. rdstail was down for a long time) are reported as
a gap anomaly.
Rarely: at most one batch after a crash (at-least-once delivery). Every
record carries a deterministic batch_id for downstream dedupe; the
DuckDB and Athena views dedupe for you.
Not against the same instances and state: they'd duplicate everything. Run
one process with restart: always / a Deployment with replicas: 1. A
restart resumes from checkpoints, so downtime only delays delivery. Use
--shard to spread a large fleet, not for redundancy.
No. message is always the raw line. rdstail extracts only what the engine
already structured: timestamp, severity, and pgAudit's classification fields.
No, on purpose: rdstail is a shipper. The recipes give you a
dashboard and alerts with Loki + Grafana in one docker compose up, or SQL
with DuckDB / Athena.
Make the engine log DDL (pgAudit or log_statement = ddl on PostgreSQL;
the audit plugin on MySQL/MariaDB), then use the
Loki + Grafana stack or your own platform.
Details: Security Detections.
Every sink receives every record. Narrow a sink by severity with filter
(min_severity or an exact severities list). For other splits (by
instance, by log type), run separate configs/processes, or route downstream
in vector / Kafka consumers.
Little: a single small process on any VM, container or Kubernetes node
(its memory scales with max_workers × batch size; see
Performance). The AWS cost is S3 PUTs and storage
(or your vendor's ingest), plus cross-region transfer if the bucket is in
another region.
Bugs and feature requests: issues. Security: SECURITY.md.