Get Involved
Query: Ensure 'log_hostname' database flag for Cloud SQL PostgreSQL instance is set appropriately
Description
PostgreSQL logs only the IP address of the connecting hosts. The log_hostname flag controls the logging of hostnames in addition to the IP addresses logged. The performance hit is dependent on the configuration of the environment and the host name resolution setup. This parameter can only be set in the postgresql.conf file or on the server command line.
Query
Tables used in this query:
Controls using this query:
- 6.2.5 Ensure 'log_hostname' database flag for Cloud SQL PostgreSQL instance is set appropriately
- 6.2.8 Ensure 'log_hostname' database flag for Cloud SQL PostgreSQL instance is set appropriately
- Ensure 'log_hostname' database flag for Cloud SQL PostgreSQL instance is set appropriately