mongocli atlas logs download
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoCLI.
Download a host mongodb logs.
Download a gzipped file containing the logs for the selected hostname. To find the hostnames for an Atlas project, you can use the process list command.
Syntax
mongocli atlas logs download <hostname> <mongodb.gz|mongos.gz|mongosqld.gz|mongodb-audit-log.gz|mongos-audit-log.gz> [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--end | string | false | End of the period for which to retrieve logs as UNIX Epoch time. |
--force | false | Overwrite the destination file. | |
-h, --help | false | help for download | |
--out | string | false | Optional output filename, if none given will use the log name. |
--projectId | string | false | Project ID to use. Overrides configuration file or environment variable settings. |
--start | string | false | Beginning of the period for which to retrieve logs as UNIX Epoch time. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |
Auto generated by MongoDB CLI on 8-Jul-2021