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
修正方法
修正方法: ガイダンスまたは IaC パッチ
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