Hello,
We recently switched to MongoDB 4.4 and we are fixing our customized log monitor script because the log format has changed so i want to ask the following.
-
For the “COMMAND” log component (“c”:“COMMAND”), does it output log only when operations are executed through the mongo shell after logging in to the mongo instance?
I ran find operations from my application (not from mongo shell) and there was log output from the “COMMAND” log component so i was wondering what the condition is for the “COMMAND” log component to output log -
What is the condition for the “QUERY” log component (“c”:“QUERY”) to output log? This is a bit related to my first question but i was expecting log output from the “QUERY” log component rather than the “COMMAND” log component when i ran find operations from my application so i want to know the conditions for “QUERY” log components to output log
Thanks