TMAegisBeta
Mais regras para postgres

PostgreSQL

TMA-POSTGRES-3.1.5

Ensure the filename pattern for log files is set correctly

BaixaNível 1Revisão manualpostgres

Descrição

The log_filename setting specifies the filename pattern for log files. The value for log_filename should match your organization's logging policy. The value is treated as a strftime pattern, so %-escapes can be used to specify time- varying file names. The supported %-escapes are similar to those listed in the Open Group's strftime specification.

Como é verificado

Método de auditoria: Revisão manual

Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --include-manual.

Run SHOW log_filename; (default postgresql-%a.log, one file per weekday) and confirm the strftime pattern matches your log retention and rotation policy.

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

ALTER SYSTEM SET log_filename = 'postgresql-%Y%m%d.log'; then SELECT pg_reload_conf();

Propriedades

Sistemas operacionais
Qualquer
Tags
postgresdatabaseloggingmanual
Referência
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.5 Ensure the filename pattern for log files is set correctly