Reputation: 31
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
Reputation: 41
We can update mongod configuration file with the below configuration
operationProfiling:
slowOpThresholdMs: 50
Upvotes: 4