Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli ops-manager logs jobs collect

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options

Start a job to collect logs for your project.

Command Syntax
mongocli ops-manager logs jobs collect <resourceType> <resourceName> [options]
Name
Type
Required
Description
resourceType
string
true
Type of resource to collect logs from.
resourceName
string
true
Name of the resource to collect logs from.
Name
Type
Required
Description
-h, --help
false
help for collect
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file.
--projectId
string
false
Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
--redacted
false
Replaces emails, hostnames, IP addresses, and namespaces in API responses involving this job with random string values.
--sizeRequestedPerFileBytes
int
true
Size for each log file in bytes.
--type
strings
true
Array of strings specifying the types of logs to collect.
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
←  mongocli ops-manager logs jobsmongocli ops-manager logs jobs delete →
Share Feedback
© 2023 MongoDB, Inc.

About

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