MongoDB
TMA-MONGO-SYSTEM-LOG-DESTINATION
Ensure system activity is logged to a file or syslog
MoyenneNiveau 1Automatiséemongodb
Description
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).
Méthode de vérification
Méthode d'audit: Motif de fichier
- Fichier
/etc/mongod.conf- Motif
(?m)^systemLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog)\b
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Set systemLog.destination: file and systemLog.path: /var/log/mongodb/mongod.log in /etc/mongod.conf and restart mongod
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- mongodbdatabaselogging
- Référence
- CIS MongoDB Benchmark - Audit Logging / System Log (verify section number for your release)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target mongodb