Server "...does not support the $indexStats command"

When connecting to one of my Atlas databases using Compass, I’m getting the following error when trying to view the number of times an index has been used: “Either the server does not support the $indexStats command or the user is not authorized to execute it.”

The index stats work fine on another database I have for a different project. How can I get it working?

As admin, check your authorities.

2 Likes

The index stats work fine on another database I have for a different project.

Is the other database in the same Atlas cluster or different one? If a different one you may have different permissions for it.

Asya