How to change log output format in non - JSON format?

In the Logging Basics lecture,

The log output for was shown in this format.

Screenshot 2020-09-20 at 8.55.31 PM

But the log output format I’m getting is in full JSON format.

Screenshot 2020-09-20 at 9.19.30 PM

Is it possible to get log output in non-JSON form ?

I’m using MonogDB Enterprise 4.4 on macOS Catalina 10.15.6.

Hi @Anish_Bhatta,

Starting in MongoDB 4.4, mongod / mongos instances output all log messages in structured JSON format.

For more information, please refer this page : Log Messages.

Hope it helps!

~ Shubham

1 Like