Repository navigation
Recipes
Avinash Gupta edited this page Oct 18, 2026
·
1 revision
Shipping logs out of CloudWatch saves money. These recipes are the other half: reading, searching and alerting on them, even if you have no log platform. Each one is tested and copy-paste.
| Recipe | You get | Runs on | Effort |
|---|---|---|---|
| Loki + Grafana stack | Search, an RDS dashboard, alerts for DROP/GRANT/failed logins/… to Slack, email or webhook |
one Docker host | docker compose up |
| DuckDB | SQL over a dump file or the S3 archive: top errors, slow-query digest, security queries |
your laptop | 2 min |
| Athena | The same SQL, serverless, over the whole archive, shared with the team | AWS | 5 min |
| Security Detections | The engine settings that make security alerts possible, and the patterns to watch | your parameter groups | 15 min |
| Destination | Route | Recipe |
|---|---|---|
| Datadog, Axiom, Better Stack, most SIEM webhooks |
http sink, direct |
Integrations |
| Splunk, Grafana Loki, Elasticsearch / OpenSearch |
stdout → vector / fluent-bit |
Integrations |
| Kafka consumers |
kafka sink |
Configuration → Kafka |
| Immutable audit archive (SOC 2, PCI, HIPAA) |
s3 sink + Object Lock |
Compliance guide |
Errors to a chat webhook, everything to S3
sinks:
- name: archive
type: s3
s3: {bucket: my-log-bucket, region: us-east-1, prefix: rds/}
- name: oncall
type: http
filter: {min_severity: ERROR}
http: {url: "https://hooks.example.com/rds-errors", timeout: 10s}Most chat tools need a specific JSON shape, so point the webhook at a
small relay (or vector's http_server source) that formats the message.
Postmortem bundle
rdstail dump -i orders-db -i orders-db-replica --region us-east-1 --since 3h -o pm-4231.ndjson.gz
duckdb -c "SELECT timestamp, instance_id, severity, message FROM read_json('pm-4231.ndjson.gz')
WHERE severity IN ('ERROR','FATAL') ORDER BY timestamp"Live deadlock watch in a terminal
rdstail tail -i orders-db --region us-east-1 --grep '(?i)deadlock|lock wait'Pipe into jq for a quick top-N
rdstail dump -i orders-db --region us-east-1 --since 1h \
| jq -r 'select(.severity=="ERROR") | .message | sub("^.*ERROR:\\s+"; "")' \
| sort | uniq -c | sort -rn | headHave a recipe that worked for you? Open an issue and we'll add it.