Managed Service for Greenplum® API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified Greenplum® cluster.
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",
"always_next_page_token": "bool",
"filter": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the Greenplum® cluster to request logs for. To get the Greenplum® cluster ID, use a ClusterService.List request. |
column_filter[] |
string Columns from log table to request. |
service_type |
enum ServiceType Type of the service to request logs about.
|
from_time |
Start timestamp for the logs request. |
to_time |
End timestamp for the logs request. |
page_size |
int64 The maximum number of results per page to return. If the number of available results is larger than |
page_token |
string Page token. To get the next page of results, set |
always_next_page_token |
bool The service always returns a ListClusterLogsResponse.next_page_token, even if the current page is empty. |
filter |
string A filter expression that filters resources listed in the response. The expression must specify:
Examples of a filter:
|
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 is larger than ListClusterLogsRequest.page_size, use the Each subsequent list request has its own This value is interchangeable with the StreamLogRecord.next_record_token from StreamLogs method. |
LogRecord
Field |
Description |
timestamp |
Time when the log was recorded. |
message |
object (map<string, string>) Contents of the log record. |