TMAegis
postgres için daha fazla kural

TMA-POSTGRES-3.1.9

Ensure the maximum log file size is set correctly

DüşükDüzey 1Manuel incelemepostgres

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Manuel inceleme

Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.

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

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
postgresdatabaseloggingmanual
Referans
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly