PostgreSQL
TMA-POSTGRES-3.1.9
Ensure the maximum log file size is set correctly
BajaNivel 1Revisión manualpostgres
Descripción
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.
Cómo se verifica
Método de auditoría: Revisión manual
Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --include-manual.
Run SHOW log_rotation_size; (default 0, size-based rotation disabled) and confirm the value matches your logging policy.
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
ALTER SYSTEM SET log_rotation_size = '1GB'; (example) then SELECT pg_reload_conf();
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- postgresdatabaseloggingmanual
- Referencia
- CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly