TMA-MONGO-SYSTEM-LOG-DESTINATION
Ensure system activity is logged to a file or syslog
СредњаНиво 1Аутоматскаmongodb
Опис
systemLog.destination file or syslog keeps server logs persistently instead of only on stdout. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
Како се проверава
Метод провере: Образац у датотеци
- Датотека
/etc/mongod.conf- Образац
(?m)^systemLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog)\b
Како се исправља
Метод исправке: Смерница или закрпа инфраструктуре
Set systemLog.destination: file and systemLog.path: /var/log/mongodb/mongod.log in /etc/mongod.conf and restart mongod
Својства
- Оперативни системи
- Било који
- Ознаке
- mongodbdatabaselogging
- Референца
- CIS MongoDB Benchmark - Audit Logging / System Log (verify section number for your release)
Проверите овај рачунар
Покрените ово на рачунару за који имате дозволу за проверу. Скенирање ради у режиму само за читање.
shell
tmaegis scan --target mongodb