After log rotation mongod.exe still uses rotatetd files

Hi @Eugen_Saprykin

The command needs to be run on the admin database. Change the db.runCommand(.... to db.adminCommand(...

Hope this helps.

1 Like