TMAegis
Plus de règles pour postgres

PostgreSQL

TMA-POSTGRES-3.1.9

Ensure the maximum log file size is set correctly

FaibleNiveau 1Revue manuellepostgres

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --include-manual.

Run SHOW log_rotation_size; (default 0, size-based rotation disabled) and confirm the value matches your logging policy.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
postgresdatabaseloggingmanual
Référence
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly