mongosh collects anonymous aggregated usage data to improve
mongosh collects this information by default, but
you can disable this data collection at any time.
mongosh tracks the following data:
- The type of MongoDB
mongoshis connected to. For example, Enterprise Edition, Community Edition, or Atlas Data Lake.
- The methods run in
mongoshonly tracks the names of the methods, and does not track any arguments supplied to methods.
- Whether users run scripts with
mongosh does not track:
- IP addresses, hostnames, usernames, or credentials.
- Queries run in
- Any data stored in your MongoDB deployment.
- Personal identifiable information.
Use the following methods in
mongosh to toggle telemetry data
Disable telemetry for
The command response confirms that telemetry is disabled:
Telemetry is now disabled.Tip
You can also disable telemetry at startup by using the
The following command starts
mongoshwith telemetry disabled:
mongosh --nodb --eval "disableTelemetry()"