SV-239197r717050_rule
V-239197
SRG-APP-000089-DB-000064
VCPG-67-000002
CAT II
10
At the command prompt, execute the following commands:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "ALTER SYSTEM SET log_line_prefix TO '%m %c %x %d %u %r %p %l ';"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT pg_reload_conf();"
At the command prompt, execute the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SHOW log_line_prefix;"|sed -n 3p|sed -e 's/^[ ]*//'
Expected result:
%m %c %x %d %u %r %p %l
If the output does not match the expected result, this is a finding.
V-239197
False
VCPG-67-000002
At the command prompt, execute the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SHOW log_line_prefix;"|sed -n 3p|sed -e 's/^[ ]*//'
Expected result:
%m %c %x %d %u %r %p %l
If the output does not match the expected result, this is a finding.
M
5324