TMAegisBeta
Mais regras para postgres

PostgreSQL

TMA-POSTGRES-3.1.9

Ensure the maximum log file size is set correctly

BaixaNível 1Revisão manualpostgres

Descrição

The log_rotation_size setting determines the maximum size of an individual log file. Once the maximum size is reached, automatic log file rotation will occur.

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_rotation_size; (default 0, size-based rotation disabled) and confirm the value matches your logging policy.

Como é corrigido

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

ALTER SYSTEM SET log_rotation_size = '1GB'; (example) then SELECT pg_reload_conf();

Propriedades

Sistemas operacionais
Qualquer
Tags
postgresdatabaseloggingmanual
Referência
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly