vip slowlogs
Retrieve MySQL slow query logs from an environment.
Usage
vip slowlogs [options]
Options
Option | Description |
---|---|
-a , --app |
Target an application. Accepts a string value for the application name or an integer for the application ID. |
-d , --debug |
Generate verbose output during command execution to help identify or fix errors or bugs. |
-e , --env |
Target an environment. Accepts a string value for the environment type. |
-f , --format |
[value] Output the log entries in CSV or JSON format (defaults to “table”) |
-h , --help |
Retrieve a description, examples, and available options for a (sub)command. |
-l , --limit |
The maximum number of log entries (defaults to 500) |
-v , --version |
Retrieve the version number of VIP-CLI currently installed on the local machine. |
Examples
- Retrieve up to 500 of the most recent entries from the MySQL slow query logs in the default format.
$ vip @example-app.develop slowlogs
- Retrieve up to 50 of the most recent entries from the MySQL slow query logs in the default format.
$ vip @example-app.develop slowlogs --limit=50
- Retrieve up to 100 of the most recent entries from the MySQL slow query logs in CSV format.
$ vip @example-app.develop slowlogs --limit=100 --format=csv
- Retrieve up to 100 of the most recent entries from the MySQL slow query logs in JSON format.
$ vip @example-app.develop slowlogs --limit=100 --format=json
Last updated: October 09, 2024