Not able to find log file

Where is the log file located? i cant seem to find it.
image

image
i did check the log and mongodb directories in above screenshots…but i cant find the log file.

1 Like

Most likely the configuration file mongo.conf will tell you where you put your log files.

i did check the path mentioned in config file…but do not find the log file in that location.

From your config file it looks like you are not producing any log at all. To generate log you have to use the systemLog core options. Please refer to https://docs.mongodb.com/manual/reference/configuration-options/ for more details.

thank you. i am now able to create the log file.

1 Like