I want to append a slow log parameter to my live MongoDB instance, but I don’t want to shut it down, add --profile --slowtime parameter, and restart my MongoDB. Is there any way to add parameter while live?
I want to append a slow log parameter to my live MongoDB instance, but
Share
You can enable profiling while mongod is running using the mongo shell and the setProfilingLevel command.
Will enable profiling with a slowms of 20ms.
For more details see here: Database Profiler.