How to perform 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

you have not put any examples?

log rotation for nosql data? What do you mean by that? Mongo stores data in BSON format. Log rotation is usually done for logs like web server logs etc using standard tools such as logrotate on GNU/Linux.