Viewing OpenSearch cluster logs
Managed Service for OpenSearch allows you to get a cluster log snippet for the selected period and view logs in real time.
Getting a cluster log
To get a cluster log, use the listLogs REST API method for the Cluster resource or the ClusterService/ListLogs gRPC API call, and provide in the request:
-
Cluster ID in the
clusterId
parameter.You can get the cluster ID with a list of clusters in the folder.
-
Type of hosts to output records for in the
serviceType
parameter:OPENSEARCH
.DASHBOARDS
.
Getting a cluster log stream
This method allows you to get cluster logs in real time.
To get a cluster log stream, use the streamLogs REST API method for the Cluster resource or the ClusterService/StreamLogs gRPC API call, and provide in the request:
-
Cluster ID in the
clusterId
parameter.You can get the cluster ID with a list of clusters in the folder.
-
Type of hosts to output records for in the
serviceType
parameter:OPENSEARCH
.DASHBOARDS
.