Does anyone know how to check the logging level in mongodb? I see how to set it, but I'm not sure what the current setting on my server is.
You can use the getParameter
command:
> use admin;
> db.runCommand({getParameter: 1, logLevel: 1});
{ "logLevel" : 0, "ok" : 1 }
Note: as the docs say, it doesn't matter what the values are for those two keys. Or, as Stennie said in the comments, just:
> db.adminCommand({getParameter: 1, logLevel: 1});
{ "logLevel" : 0, "ok" : 1 }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With