3.1.11 Ensure the program name for PostgreSQL syslog messages is correct

Information

The syslog_ident setting specifies the program name used to identify PostgreSQL messages in syslog logs. An example of a possible program name is 'postgres'.
Rationale:
If this is not set correctly, it may be difficult or impossible to distinguish PostgreSQL messages from other messages in syslog logs.

Solution

Execute the following SQL statement(s) to remediate this setting (in this example, assuming a program name of 'pg95'):
postgres=# alter system set syslog_ident = 'pg95';
ALTER SYSTEM
postgres=# select pg_reload_conf();
pg_reload_conf
----------------
t
(1 row)
postgres=# show syslog_ident;
syslog_ident
--------------
pg95
(1 row)```
Default Value:
postgres

See Also

https://workbench.cisecurity.org/files/2234

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12, CSCv6|6, CSCv7|6.3

Plugin: PostgreSQLDB

Control ID: 10d1cfeb6173d882f073650365998013d0afed1c1f7dc201930e6187813bcd82