Lab - Logging to a Different Facility -- Error with time threshold

Mi file is as follows:

storage:
dbPath: “/var/mongodb/db/”
systemLog:
path: “/var/mongodb/db/mongod.log”
destination: “file”
logAppend: true
net:
port : 27000
bindIp : 127.0.0.1,192.168.103.100
security:
authorization: "enabled:
operationProfiling:
slowOpThresholdMs: 50
processManagement:
fork : true

(my file has space indendation correctly)

When running: validate_lab_different_logpath

This error shows: You need to specify the millisecond threshold for slow operations.

But I’m already doing that with: operationProfiling:
slowOpThresholdMs: 50

What am I missing?

Thanks in advance.

You need to provide one more key under operationProfiling option. Please check here: https://docs.mongodb.com/manual/reference/configuration-options/index.html#operationprofiling-options

Kanika

I did try using the “mode”, and still got the same result.

Your config file looks nice. Did you restart your mongod, using this modified config file ?

I had to shutdown mongo and kill the process in order for it to work. Thanks.