- Execute
db.adminCommand({logRotate: 1})to backup the existing logs, then create a newmongod.logfile - Delete the backup file located in
/var/log/mongodb/with a date suffix
db.adminCommand({logRotate: 1}) to backup the existing logs, then create a new mongod.log file/var/log/mongodb/ with a date suffix