I have around 50GB Mongo log file in my cluster, for support purpose i need toshare last 10 days or range(from : this date to:that date) information to support team .

Can you tell me how to get the particular log information from log file.



You should be able to extract this information using the mtools package, specifically using the mlogfilter tool. The syntax would be similar to this:

mlogfilter mongod.log --from "end -10d" > Last10DaysMongoD.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.