TMAegis
postgres のその他のルール

TMA-POSTGRES-3.1.2

Ensure the log destinations are set correctly

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

説明

PostgreSQL supports several methods for logging server messages, including stderr, csvlog, syslog, and jsonlog. On Windows, eventlog is also supported. One or more of these destinations should be set for server log output.

チェック方法

監査方法: 手動レビュー

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

Run SHOW log_destination; (default stderr) and confirm it contains every destination required by your logging policy (stderr, csvlog, jsonlog, syslog, eventlog). Missing required destinations are a fail.

修正方法

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

ALTER SYSTEM SET log_destination = 'csvlog'; (or a comma-separated list such as 'csvlog, syslog') then SELECT pg_reload_conf();

プロパティ

オペレーティングシステム
すべて
タグ
postgresdatabaseloggingmanual
参照
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.2 Ensure the log destinations are set correctly