MongoDB - Où se trouve le fichier journal?

MongoDB - Où est le fichier journal?

Par défaut, MongoDB crée le fichier journal à ce chemin/var/log/mongodb/mongodb.log, si le fichier journal n'est pas trouvé, veuillez vérifier avec le fichier de configuration MongoDB.

logpath

Vérifiez le fichier de configuration MongoDB à/etc/mongod.conf ou/yourMongoDBpath/mongod.conf, leslogpath définis où se connecter.

/etc/mongod.conf

$ cat /etc/mongod.conf
# mongod.conf

# Where to store the data.

# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=/var/lib/mongodb3

#where to log
logpath=/var/log/mongodb/mongod.log

#...