PostgreSQL
TMA-POSTGRES-3.1.9
Ensure the maximum log file size is set correctly
NiedrigStufe 1Manuelle Prüfungpostgres
Beschreibung
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.
So wird geprüft
Prüfmethode: Manuelle Prüfung
Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.
Run SHOW log_rotation_size; (default 0, size-based rotation disabled) and confirm the value matches your logging policy.
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
ALTER SYSTEM SET log_rotation_size = '1GB'; (example) then SELECT pg_reload_conf();
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- postgresdatabaseloggingmanual
- Referenz
- CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly