Log rotation in mongodb

I Have perform the log rotation in MongoDB for my nosql data , Please help me with the Code in order to perform log rotation.

Here i have a specific set of Nosql data in my mongodb

I think this command can help u

db.adminCommand( { logRotate : 1 } )

Run this command u will be Able to perform log rotation