mongocli ops-manager logs jobs download¶
logs jobs download command downloads logs collected from a log
collection job on the specified Ops Manager project to a
You can also download logs collected from an
Ops Manager project through the
You can download logs from both successful and failed log collection jobs. If the job failed, all successful components are downloaded.
mongocli ops-manager|om logs|log jobs|job download <log-collection-job-id> [ --out <file-destination> ] [ --output|-o <output-format> ] [ --projectId <id-of-project> ] [ --profile|-P <profile-name> ]
Unique identifier of the log collection job from which to download logs.
You can retrieve a list of log collection jobs for a project
Output filename or path to filename. If omitted, logs are downloaded to your current directory as
The command downloads the logs of the specified log collection job to:
- The current directory as a file named
- A directory and filename you specify with the
If the command returns an error, see Troubleshooting for recommended solutions.
The following example uses the
mongocli ops-manager logs jobs download command to download the
logs from log collection job
5ec1cac4ac1a63007120b4ef. The command
uses the default profile where the project ID
and the Programmatic API Key