Managed Service for MongoDB API, REST: Cluster.ListLogs
Retrieves logs for the specified MongoDB cluster.
See the Logs section in the developers guide for detailed logs description.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-mongodb/v1/clusters/{clusterId}:logs
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the MongoDB cluster to request logs for. |
Query parameters
Field |
Description |
columnFilter[] |
string Columns from the logs table to request. |
serviceType |
enum (ServiceType) Type of the service to request logs about.
|
fromTime |
string (date-time) Start timestamp for the logs request, in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
toTime |
string (date-time) End timestamp for the logs request, in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
Response
HTTP Code: 200 - OK
{
"logs": [
{
"timestamp": "string",
"message": "object"
}
],
"nextPageToken": "string"
}
Field |
Description |
logs[] |
Requested log records. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
LogRecord
Field |
Description |
timestamp |
string (date-time) Log record timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
message |
object (map<string, string>) Contents of the log record. |