vip slowlogs
Retrieve MySQL slow query logs from an environment.
Usage
vip slowlogs [options]
Options
| Option | Description |
|---|---|
-a, --app |
[value] Target an application. Accepts a string value for the application name or an integer for the application ID. |
-e, --env |
[value] Target an environment. Accepts a string value for the environment type. |
-f, --format |
[value] Render output in a particular format. Accepts “table“ (default), “csv“, and “json“. |
-h, --help |
Retrieve a description, examples, and available options for a (sub)command. (default: false) |
-v, --version |
Retrieve the version number of VIP-CLI currently installed on the local machine. (default: false) |
-d, --debug |
[value] Generate verbose output during command execution to help identify or fix errors or bugs. |
-l, --limit |
[value] Set the maximum number of log entries. Accepts an integer value between 1 and 500. |
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: July 07, 2026