Feature request: log to single lines

231 views
Skip to first unread message

Ben Hizak

unread,
Jul 26, 2019, 7:28:39 PM7/26/19
to Google Cloud SQL discuss
Feature Request: Make auditing of database operations in stackdriver easier
Problem: Postgres log creates one line per row in SQL statements, which means that the in Stackdriver is multi-line. In other words, no single log captures a single event. This makes the logging hard to read, and nearly impossible to mine/ monitor.

Possible solution:
If you know what the limit is on your particular platform, you could adjust the chopping-point constant in elog.c (source)

Context: 
in order to audit postgres on Stackdriver logging, I set  log_statement=all

gcloud sql instances patch MY_INSTANCE_NAME --database-flags log_statement=all


postgres_logging2.png

Additional reading:
postgres_logging2.png

Elliott (Google Cloud Platform Support)

unread,
Jul 26, 2019, 8:27:46 PM7/26/19
to Google Cloud SQL discuss

Hello,


Please note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for feature requests, which is why I suggest using Issue Tracker to create one.


Reply all
Reply to author
Forward
0 new messages