title: How to see oplog in standalone MongoDB
body: <p>I want to see oplog so I have started MongoDB with as suggested in <a href="https://jira.mongodb.org/browse/SERVER-12039" rel="nofollow">here</a></p>
  
  <pre><code>mongod --master --port 8888 --dbpath ...
  </code></pre>
  
  <p>But when I run</p>
  
  <pre><code>&gt;db.oplog.rs.find()
  </code></pre>
  
  <p>It returns nothing</p>
  
  <p>When I run </p>
  
  <pre><code>&gt;db.oplog.rs.stats()
  </code></pre>
  
  <p>returns error </p>
  
  <pre><code>{
  "ok" : 0,
  "errmsg" : "ns not found"
  }
  </code></pre>
  
  <p>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. </p>