Managed Service for OpenSearch 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"
],
"fromTime": "google.protobuf.Timestamp",
"toTime": "google.protobuf.Timestamp",
"recordToken": "string",
"filter": "string",
"serviceType": "ServiceType"
}
Field |
Description |
clusterId |
string Required field. ID of the OpenSearch cluster. |
columnFilter[] |
string Columns from log table to get in the response. |
fromTime |
Start timestamp for the logs request. |
toTime |
End timestamp for the logs request. If this field is not set, all existing logs are sent as well as the new ones as they appear. In essence it has |
recordToken |
string Record token. Set |
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.
|
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 same record. To do that, specify value of This value is interchangeable with [ListLogs.next_page_token] from ListLogs method. |
LogRecord
Field |
Description |
timestamp |
Time when the log was recorded. |
message |
string Contents of the log record. |