Managed Service for Redis API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified Redis cluster.
gRPC request
rpc ListLogs (ListClusterLogsRequest) returns (ListClusterLogsResponse)
ListClusterLogsRequest
{
"clusterId": "string",
"columnFilter": [
"string"
],
"serviceType": "ServiceType",
"fromTime": "google.protobuf.Timestamp",
"toTime": "google.protobuf.Timestamp",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
clusterId |
string Required field. ID of the Redis cluster to request logs for. |
columnFilter[] |
string Columns from the logs table to request. |
serviceType |
enum ServiceType
|
fromTime |
Start timestamp for the logs request, in RFC3339 |
toTime |
End timestamp for the logs request, in RFC3339 |
pageSize |
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 |
ListClusterLogsResponse
{
"logs": [
{
"timestamp": "google.protobuf.Timestamp",
"message": "string"
}
],
"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 |
Log record timestamp in RFC3339 |
message |
string Contents of the log record. |