MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

How to filter periodic noop with mongodump

mongodump --host=“rs0/localhost:27017,localhost:27018,localhost:27019” --readPreference=secondary -d local -c oplog.rs --query “{“ts”: {”$gte": {"$timestamp": {“t”:$lasttime, “i”: 50}}}}" -vvv -o /home/anupama/backupec2/inc_back

When I bsondump the file I get too many irrelevant data saying “msg”:“periodic noop”
How can i filter it in addition to the above query command.

May be by adding additional filter on operation o can help

“o.msg”:
{
$ne: “periodic noop”}

1 Like