Managed Service for Elasticsearch API, REST: Cluster.ListLogs
Retrieves logs for the specified Elasticsearch cluster.
For more information about logs, see the Logs section in the documentation.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-elasticsearch/v1/clusters/{clusterId}:logs
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the Elasticsearch cluster to request logs for. To get the Elasticsearch cluster ID, make a ClusterService.List request. |
Query parameters
Field |
Description |
columnFilter[] |
string Columns from the logs table to request. If no columns are specified, full log records are returned. |
fromTime |
string (date-time) Start timestamp for the logs request. String in RFC3339 To work with values in this field, use the APIs described in the |
toTime |
string (date-time) End timestamp for the logs request. String in RFC3339 To work with values in this field, use the APIs described in the |
pageSize |
string (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 |
boolean 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: |
serviceType |
enum (ServiceType) Type of the service to request logs about.
|
Response
HTTP Code: 200 - OK
{
"logs": [
{
"timestamp": "string",
"message": "object"
}
],
"nextPageToken": "string"
}
Field |
Description |
logs[] |
Requested log records. |
nextPageToken |
string Token that allows you to get the next page of results for list requests. If the number of results is larger than ListClusterLogsRequest.pageSize, use This value is interchangeable with StreamLogRecord.nextRecordToken from StreamLogs method. |
LogRecord
A single log record.
Field |
Description |
timestamp |
string (date-time) Log record timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
message |
object (map<string, string>) Contents of the log record. |