csvlog & JSON Logs
Structured PostgreSQL logs (csvlog or jsonlog) feed centralized SIEM, Loki, or CloudWatch Logs Insights. Parse once, query by user_name, application_name, and session_id, and retain off-host so a compromised DB VM does not erase audit evidence.