Lab: Logging to a Different Facility

I am trying to start mongod with new logpath set and fork option. All commands in config file looks correct but i am getting errors. I have attached the screenshots. Please advise.

What errors do you get when starting mongod? Please post screenshot of the terminal where you start mongod.

I did not get any errors while starting Mongodb. Please find attached screenshot of the terminal when mongod is started.

I have just notice that you have
/var/log/mongodb/…
while it wants
/var/mongod/logs/….

1 Like

oh! my bad! It worked now. Thanks for your help on this issue.