Lecture : Logging Basics

Where do I find the “mongod.log” file ?

vagrant@m103:~$ tail -f /data/db/mongod.log

tail: cannot open ‘/data/db/mongod.log’ for reading: No such file or directory

vagrant@m103:~$

Is your mongod up and running?
How did you start it
Please paste the command and make sure the dirs you used for dbpath and logpath exists and you have permissions to read/write on them

Hi @Gaurav_00592,

Please check the exact path you have specified for mongod.log in your configuration file or configuration options. Also, make sure you have permission for the directories.

Please let me know, if you have any questions.

Thanks,
Sonali