SV-98867r1_rule
V-88217
SRG-APP-000089-DB-000064
VROM-PG-000025
CAT II
10
At the command prompt, execute the following commands:
# sed -i.bak "/log_line_prefix.*/ d" /storage/db/vcops/vpostgres/data/postgresql.conf
# sed -i "$ a log_line_prefix = '%m %d %u %r %p %l %c'" /storage/db/vcops/vpostgres/data/postgresql.conf
# su postgres
postgres@vRealizeClusterNode:> cd /opt/vmware/vpostgres/current
postgres@vRealizeClusterNode:> /opt/vmware/vpostgres/9.3/bin/pg_ctl restart -D /storage/db/vcops/vpostgres/data
postgres@vRealizeClusterNode:> exit
At the command prompt, execute the following command:
# grep '^\s*log_line_prefix\b' /storage/db/vcops/vpostgres/data/postgresql.conf
If log_line_prefix is not set to "%m %d %u %r %p %l %c", this is a finding.
V-88217
False
VROM-PG-000025
At the command prompt, execute the following command:
# grep '^\s*log_line_prefix\b' /storage/db/vcops/vpostgres/data/postgresql.conf
If log_line_prefix is not set to "%m %d %u %r %p %l %c", this is a finding.
M
3445