Where to find logs in Lab: Building an Index in the Foreground in Production

I have run the shell script and the python script, employees collection successfully inserted. But now I need to look at the logs but can’t find the logs anywhere and don’t know how to locate them.

Check mongod.log of each node or db.currops or db.oplog.rs
See mongo documentation for exact command syntax

I was trying to find the mongod.log files, but couldn’t find the correct data directory. I have since found them, but thank you for the command suggestions, I will try those out and compare results.

Directory with mongod.log: /home/vagrant/data/m312RS/rs1
I swear I had looked there yesterday, but there is where I found logs for rs1, rs2, and rs3 in the replica set.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.