Managed Service for OpenSearch API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified OpenSearch cluster.
For detailed description, see the Logs section in the developer's guide.
gRPC request
rpc ListLogs (ListClusterLogsRequest) returns (ListClusterLogsResponse)
ListClusterLogsRequest
{
"clusterId": "string",
"columnFilter": [
"string"
],
"fromTime": "google.protobuf.Timestamp",
"toTime": "google.protobuf.Timestamp",
"pageSize": "int64",
"pageToken": "string",
"alwaysNextPageToken": "bool",
"filter": "string",
"serviceType": "ServiceType"
}
Field |
Description |
clusterId |
string Required field. ID of the OpenSearch cluster to request logs for. To get the OpenSearch cluster ID use a ClusterService.List request. |
columnFilter[] |
string Columns from log table to request. |
fromTime |
Start timestamp for the logs request. |
toTime |
End timestamp for the logs request. |
pageSize |
int64 The maximum number of results per page to return. If the number of available results is larger than |
pageToken |
string Page token. To get the next page of results, set |
alwaysNextPageToken |
bool The service always returns a ListClusterLogsResponse.nextPageToken, 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:
|
serviceType |
enum ServiceType Type of the service to request logs about.
|
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 is larger than ListClusterLogsRequest.pageSize, use the Each subsequent list request has its own This value is interchangeable with the StreamLogRecord.nextRecordToken from StreamLogs method. |
LogRecord
Field |
Description |
timestamp |
Time when the log was recorded. |
message |
string Contents of the log record. |