Docs Menu

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.

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, 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.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
What is MongoDB Atlas? →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.