TMA-POSTGRES-3.1.9
Ensure the maximum log file size is set correctly
ThấpCấp 1Xem xét thủ côngpostgres
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Xem xét thủ công
Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.
Run SHOW log_rotation_size; (default 0, size-based rotation disabled) and confirm the value matches your logging policy.
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
ALTER SYSTEM SET log_rotation_size = '1GB'; (example) then SELECT pg_reload_conf();
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- postgresdatabaseloggingmanual
- Tham chiếu
- CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.9 Ensure the maximum log file size is set correctly