Streams
- class elasticsearch.client.StreamsClient
To use this client, access
client.streamsfrom anElasticsearchclient. For example:from elasticsearch import Elasticsearch # Create the client instance client = Elasticsearch(...) # Use the streams client client.streams.<method>(...)
- logs_disable(*, error_trace=None, filter_path=None, human=None, master_timeout=None, pretty=None, timeout=None)
Disable logs stream.
Turn off the logs stream feature for this cluster.
https://www.elastic.co/docs/api/doc/elasticsearch#TODO
- Parameters:
master_timeout (str | Literal[-1] | ~typing.Literal[0] | None) – The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
timeout (str | Literal[-1] | ~typing.Literal[0] | None) – The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
error_trace (bool | None)
human (bool | None)
pretty (bool | None)
- Return type:
- logs_enable(*, error_trace=None, filter_path=None, human=None, master_timeout=None, pretty=None, timeout=None)
Enable logs stream.
Turn on the logs stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the cluster does not have existing indices or data streams that match the pattern
logs|logs.*. If those indices or data streams exist, a409 - Conflictresponse and error is returned.https://www.elastic.co/docs/api/doc/elasticsearch#TODO
- Parameters:
master_timeout (str | Literal[-1] | ~typing.Literal[0] | None) – The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
timeout (str | Literal[-1] | ~typing.Literal[0] | None) – The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
error_trace (bool | None)
human (bool | None)
pretty (bool | None)
- Return type:
- status(*, error_trace=None, filter_path=None, human=None, master_timeout=None, pretty=None)
Get the status of streams.
Get the current status for all types of streams.
https://www.elastic.co/docs/api/doc/elasticsearch#TODO
- Parameters:
- Return type: