Would anyone happen to know a way to effectively filter the output of MongoDB's db.adminCommand? Whenever I run the command
db.adminCommand({ "currentOp": true, "op" : "query", "planSummary": "COLLSCAN" })
, I receive a large JSON output containing various fields. However, I am only interested in specific fields such as secs_running, op, command, and $db.
Thank you in advance!