VCPG-67-000023 - VMware Postgres must use Coordinated Universal Time (UTC) for log timestamps.

Information

If time stamps are not applied consistently and there is no common time reference, it is difficult to perform forensic analysis.

Time stamps generated by the DBMS must include date and time. Time is commonly expressed in UTC, a modern continuation of Greenwich Mean Time (GMT), or local time with an offset from UTC.

Some DBMS products offer a data type called TIMESTAMP that is not a representation of date and time. Rather, it is a database state counter and does not correspond to calendar and clock time. This requirement does not refer to that meaning of TIMESTAMP.

Solution

At the command prompt, execute the following commands:

# /opt/vmware/vpostgres/current/bin/psql -U postgres -c 'ALTER SYSTEM SET log_timezone TO 'Etc/UTC';'

# /opt/vmware/vpostgres/current/bin/psql -U postgres -c 'SELECT pg_reload_conf();'

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_6-7_Y22M04_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-8b., CAT|II, CCI|CCI-001890, Rule-ID|SV-239215r679018_rule, STIG-ID|VCPG-67-000023, Vuln-ID|V-239215

Plugin: Unix

Control ID: c0b3784db9212600145f283f457085712bea6e26fa9c973b7a097e48a9640ec6