Managed Service for Elasticsearch API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified Elasticsearch cluster.
For more information about logs, see the Logs section in the documentation.
gRPC request
rpc ListLogs (ListClusterLogsRequest) returns (ListClusterLogsResponse)
ListClusterLogsRequest
{
"cluster_id": "string",
"column_filter": [
"string"
],
"from_time": "google.protobuf.Timestamp",
"to_time": "google.protobuf.Timestamp",
"page_size": "int64",
"page_token": "string",
"always_next_page_token": "bool",
"filter": "string",
"service_type": "ServiceType"
}
Field |
Description |
cluster_id |
string Required field. ID of the Elasticsearch cluster to request logs for. To get the Elasticsearch cluster ID, make a ClusterService.List request. |
column_filter[] |
string Columns from the logs table to request. If no columns are specified, full log records are returned. |
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 flag that defines behavior of providing the next page token. If this flag is set to |
filter |
string A filter expression that filters resources listed in the response. The expression must specify:
Example of a filter: |
service_type |
enum ServiceType Type of the service to request logs about.
|
ListClusterLogsResponse
{
"logs": [
{
"timestamp": "google.protobuf.Timestamp",
"message": "map<string, string>"
}
],
"next_page_token": "string"
}
Field |
Description |
logs[] |
Requested log records. |
next_page_token |
string Token that allows you to get the next page of results for list requests. If the number of results is larger than ListClusterLogsRequest.page_size, use This value is interchangeable with StreamLogRecord.next_record_token from StreamLogs method. |
LogRecord
A single log record.
Field |
Description |
timestamp |
Log record timestamp. |
message |
object (map<string, string>) Contents of the log record. |