How to find user name from mongo logs

Hello,

How to get user name that from which user the query is coming , logged in MongoDB log.

Hello @Aayushi_Mangal, you can try using the mtools. It has a tool called mlogfilter which:

slices log files by time, merges log files, filters slow queries, finds table scans, shortens log lines, filters by other attributes, convert to JSON.

Hello @Prasad_Saya,

That is really nice tool. But I am not sure that I will be able to get user details from log.