What goes into the
postgresql log is controlled by parameter-group settings such as log_statement, log_min_duration_statement, log_connections, and log_autovacuum_min_duration.
Recommended method
CloudWatch Log Forwarder — enable thepostgresql log export (and optionally upgrade and iam-db-auth-error) on the DB instance or cluster (Modify → Log exports). The Bronto forwarder Lambda subscribes to the resulting CloudWatch Log Groups (/aws/rds/instance/<instance>/postgresql or /aws/rds/cluster/<cluster>/postgresql) and streams events into Bronto.
Alternatives
- Amazon Data Firehose — for very high-volume environments. Enable PostgreSQL log exports to CloudWatch Logs, then add a subscription filter on the log group targeting a Firehose stream. PostgreSQL logs arrive as plain
stderrtext, so Bronto stores them raw and a custom parser is required to extract fields. See Record formats.
