TMAegis
mongodb için daha fazla kural

MongoDB

TMA-MONGO-SYSTEM-LOG-DESTINATION

Ensure system activity is logged to a file or syslog

OrtaDüzey 1Otomatikmongodb

Açıklama

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).

Nasıl denetlenir

Denetim yöntemi: Dosya deseni

Dosya
/etc/mongod.conf
Desen
(?m)^systemLog:[ \t]*\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+destination:[ \t]*['\x22]?(?:file|syslog)\b

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Set systemLog.destination: file and systemLog.path: /var/log/mongodb/mongod.log in /etc/mongod.conf and restart mongod

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
mongodbdatabaselogging
Referans
CIS MongoDB Benchmark - Audit Logging / System Log (verify section number for your release)

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target mongodb