I want to see oplog so I have started MongoDB with as suggested in here
mongod --master --port 8888 --dbpath ...
But when I run
>db.oplog.rs.find()
It returns nothing
When I run
>db.oplog.rs.stats()
returns error
{
"ok" : 0,
"errmsg" : "ns not found"
}
I have also tried these commands with '>use local'. I see same results.I am planning to read it using java oplog watcher API. But not able to get it. What am I missing.How to see oplog.