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 <server-instance-no> \
--logType <log|audit> \
[--pageNo <page-no>] \
[--pageSize <page-size>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
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 |
--logType |
String | Required | DB server log file type
|
--pageSize |
Integer | Conditional | Number of items per page
|
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
|
Common options
For information about the options common to all vmongodb subcommands, see Cloud DB for MongoDB (VPC) options.
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"
}
}