Welcome to the MongoDB Community @Vincent_Fiset !
I believe the option you are looking for is systemLog.quiet
:
Type : boolean
Default : false
Run mongos
or mongod
in a quiet mode that attempts to limit the amount of output.
systemLog.quiet
is not recommended for production systems as it may make tracking problems during particular connections much more difficult.
As noted in the documentation, enabling this option is not recommended for production systems as it limits visibility and diagnostics for issues based on the originating connection. This option reduces but does not completely suppress all log messages.
If you are using the default logging to a file
destination, I recommend setting up Log Rotation to adjust log file size and retention options to be relevant for your requirements.
If you want to limit log output more aggressively than the quiet
outcome, you can send logs to a syslog
destination and use a logging service supporting filtering conditions. For example, on Linux you could use logging services like rsyslog
, syslog-ng
or Fluentd.
Regards,
Stennie