db.getLogComponents() uncaught exception: Error: getLogComponents failed

I am getting this error that getLogComponents failed

MongoDB Enterprise atlas-wu502s-shard-0:PRIMARY> db.getLogComponents()
uncaught exception: Error: getLogComponents failed:{
    "ok" : 0,
    "errmsg" : "{getParameter: 1, logComponentVerbosity: \"\"} not allowed in this atlas tier",
    "code" : 8000,
    "codeName" : "AtlasError"
}:

_getErrorWithCode@src/mongo/shell/utils.js:25:13
Mongo.prototype.getLogComponents@src/mongo/shell/mongo.js:175:15
DB.prototype.getLogComponents@src/mongo/shell/db.js:1817:12
@(shell):1:1

Hey @Evolution_Afri,

As the error message state, I believe getLogComponents() is not supported in the Atlas tier you are using.

Reference: https://docs.atlas.mongodb.com/unsupported-commands/

In case you have any doubts, please feel free to reach out to us.

Thanks,
Kushagra Kesav,
Curriculum Services Engineer

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.