TMAegisBeta
Mais regras para postgres

PostgreSQL

TMA-POSTGRES-3.1.2

Ensure the log destinations are set correctly

BaixaNível 1Revisão manualpostgres

Descrição

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.

Como é verificado

Método de auditoria: Revisão manual

Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --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.

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

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

Propriedades

Sistemas operacionais
Qualquer
Tags
postgresdatabaseloggingmanual
Referência
CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.2 Ensure the log destinations are set correctly