TMAegisベータ
postgres のその他のルール

PostgreSQL

TMA-POSTGRES-3.1.9

Ensure the maximum log file size is set correctly

低レベル 1手動レビューpostgres

説明

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.

チェック方法

監査方法: 手動レビュー

この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。

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

修正方法

修正方法: ガイダンスまたは IaC パッチ

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

プロパティ

オペレーティングシステム
すべて
タグ
postgresdatabaseloggingmanual
参照
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly