mongocli atlas logs download
On this page
mongocli atlas
commands are now deprecated because there's a new, dedicated CLI available for Atlas users. Migrate to the Atlas CLI to enjoy the same capabilities and the latest features. You can use mongocli atlas
commands until April 30, 2023.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, in UNIX Epoch format, until which to retrieve logs. |
--force | false | Overwrites the destination file. | |
-h, --help | false | help for download | |
--out | string | false | Optional output file name. Uses the log name if the output file's name is not specified. |
--projectId | string | false | Project ID to use. Overrides the settings in the configuration file or environment variable. |
--start | string | false | Beginning of the date and time, in UNIX Epoch format, from which to retrieve logs. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |