Managed Service for ClickHouse API, gRPC: ClusterService.ListLogs
Retrieves logs for the specified ClickHouse 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 ClickHouse cluster to request logs for. |
columnFilter[] |
string Columns from logs table to request. |
serviceType |
enum ServiceType Required field. Type of the service to request logs about.
|
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. |