mongocli ops-manager performanceAdvisor slowQueryLogs list
On this page
Return log lines for slow queries that the Performance Advisor and Query Profiler identified.
The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance. The threshold for slow queries varies based on the average time of operations on your cluster to provide recommendations pertinent to your workload. You must have one of the following roles to run this command: Project Owner access Project Data Access Admin access Project Data Access Read/Write access Project Data Access Read Only access
Syntax
mongocli ops-manager performanceAdvisor slowQueryLogs list [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--duration | int | false | Length of time from the since parameter, in milliseconds, for which you want to receive results. |
-h, --help | false | help for list | |
--hostId | string | false | Unique identifier for the host of a MongoDB process. |
--nLog | int | false | Maximum number of log lines to return. This value defaults to 20000. |
--namespaces | string | false | Namespaces from which to retrieve suggested slow query logs. |
-o, --output | string | false | Output format. Valid values are json, json-path, go-template, or go-template-file. |
--processName | string | false | Unique identifier for the host of a MongoDB process in the following format: {hostname}:{port}. |
--projectId | string | false | Project ID to use. Overrides the settings in the configuration file or environment variable. |
--since | int | false | Point in time, specified as milliseconds since the Unix Epoch, from which you want to receive results. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |