MongoDB
TMA-MONGODB-5.3
Ensure that logging captures as much information as possible
ThấpCấp 2Tự độngmongodb
Mô tả
The SystemLog.quiet option stops logging of information such as: - connection events - authentication events - replication sync activities - evidence of some potentially impactful commands being run (eg: drop, dropIndexes, validate) This information should be logged whenever possible. This check is only for Enterprise editions. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist). Passes when systemLog.quiet is absent or false.
Cách kiểm tra
Phương pháp kiểm tra: Mẫu tệp
- Tệp
/etc/mongod.conf- Mẫu khớp
(?m)^[ \t]*quiet:[ \t]*['\x22]?true\b
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
Set systemLog.quiet: false (or remove the quiet setting) in /etc/mongod.conf and restart mongod.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- mongodblogging
- Tham chiếu
- CIS MongoDB 8 Benchmark v2.0.0 - 5.3 Ensure that logging captures as much information as possible
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target mongodb --level 2