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