Managed Service for MongoDB API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified MongoDB cluster.
See the Logs section in the developers guide for detailed logs description.
gRPC request
rpc ListLogs (ListClusterLogsRequest) returns (ListClusterLogsResponse)
ListClusterLogsRequest
{
"cluster_id": "string",
"column_filter": [
"string"
],
"service_type": "ServiceType",
"from_time": "google.protobuf.Timestamp",
"to_time": "google.protobuf.Timestamp",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the MongoDB cluster to request logs for. |
column_filter[] |
string Columns from the logs table to request. |
service_type |
enum ServiceType Type of the service to request logs about.
|
from_time |
Start timestamp for the logs request, in RFC3339 |
to_time |
End timestamp for the logs request, in RFC3339 |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, set |
ListClusterLogsResponse
{
"logs": [
{
"timestamp": "google.protobuf.Timestamp",
"message": "map<string, string>"
}
],
"next_page_token": "string"
}
Field |
Description |
logs[] |
Requested log records. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
LogRecord
Field |
Description |
timestamp |
Log record timestamp in RFC3339 |
message |
object (map<string, string>) Contents of the log record. |