--- title: "getDbServerLogList" slug: "cli-vmysql-getdbserverloglist" tags: ["Cloud DB for MySQL", "VPC"] updated: 2026-09-17T10:08:39Z published: 2026-09-17T10:08:39Z canonical: "cli.ncloud-docs.com/cli-vmysql-getdbserverloglist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getDbServerLogList Available in VPC Get the list of Cloud DB for MySQL instance DB server logs. ## Syntax The `getDbServerLogList` syntax is as follows: ``` ./ncloud vmysql getDbServerLogList \ --cloudMysqlServerInstanceNo \ --logType \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getDbServerLogList`. ### Required options The following options are required for `getDbServerLogList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--cloudMysqlServerInstanceNo` | String | Required | Cloud DB for MySQL server instance number - See [getCloudMysqlInstanceList](/docs/en/cli-vmysql-getcloudmysqlinstancelist). | | `--logType` | String | Required | DB server log file type - `BINARY` \| `ERROR` \| `SLOW` \| `GENERAL` \| `AUDIT` - `BINARY`: Log all data changes that occurred on the master server. - `ERROR`: Log errors encountered by DB server. - `SLOW`: Log queries that run for more than a set amount of time and related information. - `GENERAL`: Log all executed SQL queries and related information. - `AUDIT`: Log security-related events. | ### Common options For information about the options common to all `vmysql` subcommands, see [Cloud DB for MySQL (VPC) options](/docs/en/cli-vmysql#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of logs for the Cloud DB for MySQL DB server is successful, the name, size, and creation date and time of each log file are returned. ### Command The command example is as follows: ``` ./ncloud vmysql getDbServerLogList \ --cloudMysqlServerInstanceNo 34567890 \ --logType ERROR \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getDbServerLogListResponse": { "totalRows": 1, "cloudMysqlDbServerLogList": [ { "fileName": "mysqld.err", "fileSize": 51911, "fileDate": "2026-06-04T17:37:28+0900" } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```