--- title: "getDbServerLogList" slug: "cli-vmongodb-getdbserverloglist" updated: 2026-09-17T10:08:42Z published: 2026-09-17T10:08:42Z canonical: "cli.ncloud-docs.com/cli-vmongodb-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 MongoDB instance DB server logs. ## Syntax The `getDbServerLogList` syntax is as follows: ``` ./ncloud vmongodb getDbServerLogList \ --cloudMongoDbServerInstanceNo \ --logType \ [--pageNo ] \ [--pageSize ] \ [--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 | | --- | --- | --- | --- | | `--cloudMongoDbServerInstanceNo` | String | Required | Cloud DB for MongoDB server instance number - See [getCloudMongoDbInstanceList](/docs/en/cli-vmongodb-getcloudmongodbinstancelist). | | `--logType` | String | Required | DB server log file type - `log` \| `audit` | | `--pageSize` | Integer | Conditional | Number of items per page - `1`-N - Required when entering `pageNo`. | ### Optional options These are the optional options for `getDbServerLogList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--pageNo` | Integer | Optional | Page number - `0`-N | ### Common options For information about the options common to all `vmongodb` subcommands, see [Cloud DB for MongoDB (VPC) options](/docs/en/cli-vmongodb#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of logs for the Cloud DB for MongoDB 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 vmongodb getDbServerLogList \ --cloudMongoDbServerInstanceNo 34567891 \ --logType log \ --pageNo 0 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getDbServerLogListResponse": { "totalRows": 1, "cloudMongoDbDbServerLogList": [ { "fileName": "mongod.log.2026-06-10T20-00-01", "fileSize": 25808535, "fileDate": "2026-06-11T05:00:01+0900" } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```