db.
getProfilingStatus
profile
slowOpThresholdMs
slowOpSampleRate
Starting in MongoDB 4.4.2, you can set a filter to control which operations are logged by the profiler. When set, any configured filters are also returned by db.getProfilingStatus(), along with a note explaining filter behavior.
filter
db.getProfilingStatus()
note
You can set the profiling filter with either:
db.setProfilingLevel()
operationProfiling.filter