Skip to content

vip slowlogs

Retrieve MySQL slow query logs from an environment.

Usage

vip slowlogs [options]

Options

OptionDescription
-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 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.
-l, --limit Set the maximum number of log entries. Accepts an integer value between 1 and 500. (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: February 19, 2025