Navigation

mongocli atlas logs download

On this page

  • Syntax
  • Options
  • Inherited Options

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.

mongocli atlas logs download <hostname> <mongodb.gz|mongos.gz|mongosqld.gz|mongodb-audit-log.gz|mongos-audit-log.gz> [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.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.

Auto generated by cobra2snooty on 13-Jul-2021

Give Feedback

On this page

  • Syntax
  • Options
  • Inherited Options