Vigneshwar A
Vigneshwar A

Reputation: 31

set any process that takes 50ms or longer is logged in mongod.conf

I wanna set any process that takes 50ms or longer is logged

I am aware of the below methods db.setProfilingLevel db.setLoglevel

mongod --profile 2 --slowms 50

But i wanna set it from /etc/mongod.conf any suggestions?

Upvotes: 2

Views: 1429

Answers (1)

Sarinnath m.k
Sarinnath m.k

Reputation: 41

We can update mongod configuration file with the below configuration

operationProfiling:
  slowOpThresholdMs: 50

Upvotes: 4

Related Questions