Docs Menu

Configure Telemetry Options

On this page

  • What Kind of Data mongosh Tracks
  • Toggle Telemetry Collection

mongosh collects anonymous aggregated usage data to improve MongoDB products. 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 mongosh is connected to. For example, Enterprise Edition, Community Edition, or Atlas Data Lake.
  • The methods run in mongosh. mongosh only tracks the names of the methods, and does not track any arguments supplied to methods.
  • Whether users run scripts with mongosh.
  • Errors.

mongosh does not track:

  • IP addresses, hostnames, usernames, or credentials.
  • Queries run in mongosh.
  • Any data stored in your MongoDB deployment.
  • Personal identifiable information.

For more information, see MongoDB's Privacy Policy.

Use the following methods in mongosh to toggle telemetry data collection.


Disable telemetry for mongosh.


The command response confirms that telemetry is disabled:

Telemetry is now disabled.

You can also disable telemetry at startup by using the --eval startup option.

The following command starts mongosh with telemetry disabled:

mongosh --nodb --eval "disableTelemetry()"

Enable telemetry for mongosh.


The command response confirms that telemetry is enabled:

Telemetry is now enabled.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.