I'd like to disable NETWORK logs but can't find a way. As I can see in the docs, without using quiet I am already at the least verbose level with 0.

The verbosity level can range from 0 to 5 :

  • 0 is the MongoDB’s default log verbosity level, to include Informationalmessages.
  • 1 to 5 increases the verbosity level to include Debug messages.

Is there a way to remove NETWORK logs but keep useful logs such as slow queries and the likes ?

1 Answer 1


vi /etc/mongod.conf

  quiet: true
  path: /dev/null
  • 1
    OP asked how to retain other logs than NETWORK.
    – jorisw
    Jul 14 at 11:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .