PostgreSQL
TMA-POSTGRES-3.1.5
Ensure the filename pattern for log files is set correctly
НискаНиво 1Ручни прегледpostgres
Опис
The log_filename setting specifies the filename pattern for log files. The value for log_filename should match your organization's logging policy. The value is treated as a strftime pattern, so %-escapes can be used to specify time- varying file names. The supported %-escapes are similar to those listed in the Open Group's strftime specification.
Како се проверава
Метод провере: Ручни преглед
Ова препорука се не може проверити аутоматски. Скенирање је наводи са овим упутствима када проследите --include-manual.
Run SHOW log_filename; (default postgresql-%a.log, one file per weekday) and confirm the strftime pattern matches your log retention and rotation policy.
Како се исправља
Метод исправке: Смерница или закрпа инфраструктуре
ALTER SYSTEM SET log_filename = 'postgresql-%Y%m%d.log'; then SELECT pg_reload_conf();
Својства
- Оперативни системи
- Било који
- Ознаке
- postgresdatabaseloggingmanual
- Референца
- CIS PostgreSQL 18 Benchmark v1.0.0 - 3.1.5 Ensure the filename pattern for log files is set correctly