Managed Service for ClickHouse API, gRPC: ClusterService.StreamLogs
Same as ListLogs but using server-side streaming. Also allows for tail -f
semantics.
gRPC request
rpc StreamLogs (StreamClusterLogsRequest) returns (stream StreamLogRecord)
StreamClusterLogsRequest
{
"clusterId": "string",
"columnFilter": [
"string"
],
"serviceType": "ServiceType",
"fromTime": "google.protobuf.Timestamp",
"toTime": "google.protobuf.Timestamp",
"recordToken": "string",
"filter": "string"
}
Field |
Description |
clusterId |
string Required field. Required. ID of the ClickHouse cluster. |
columnFilter[] |
string Columns from logs table to get in the response. |
serviceType |
enum ServiceType Required field.
|
fromTime |
Start timestamp for the logs request. |
toTime |
End timestamp for the logs request. |
recordToken |
string Record token. Set |
filter |
string A filter expression that filters resources listed in the response.
|
StreamLogRecord
{
"record": {
"timestamp": "google.protobuf.Timestamp",
"message": "string"
},
"nextRecordToken": "string"
}
Field |
Description |
record |
One of the requested log records. |
nextRecordToken |
string This token allows you to continue streaming logs starting from the exact |
LogRecord
Field |
Description |
timestamp |
Log record timestamp in RFC3339 |
message |
string Contents of the log record. |