MongoDB logging all queries

The question is as basic as it is simple… How do you log all queries in a “tail”able log file in mongodb?

I have tried:

  • setting the profiling level
  • setting the slow ms parameter starting
  • mongod with the -vv option

The /var/log/mongodb/mongodb.log keeps showing just the current number of active connections…

16 Answers
16

Leave a Comment