TMA-MONGODB-5.4
Ensure that new entries are appended to the end of the log file
НизкийУровень 2Автоматическаяmongodb
Описание
By default, new log entries will overwrite old entries after a restart of the mongod or Mongols service. Enabling the systemLog.logAppend setting causes new entries to be appended to the end of the log file rather than overwriting the existing content of the log when the mongos or mongod instance restarts. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
Как проверяется
Метод проверки: Шаблон в файле
- Файл
/etc/mongod.conf- Шаблон
(?m)^[ \t]*logAppend:[ \t]*['\x22]?true\b
Как исправляется
Метод исправления: Рекомендация или патч инфраструктуры
Set systemLog.logAppend: true in /etc/mongod.conf and restart mongod.
Свойства
- Операционные системы
- Любая
- Теги
- mongodblogging
- Источник
- CIS MongoDB 8 Benchmark v2.0.0 - 5.4 Ensure that new entries are appended to the end of the log file
Проверить этот хост
Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.
shell
tmaegis scan --target mongodb --level 2