Logstash

class elasticsearch.client.LogstashClient

To use this client, access client.logstash from an Elasticsearch client. For example:

from elasticsearch import Elasticsearch

# Create the client instance
client = Elasticsearch(...)
# Use the logstash client
client.logstash.<method>(...)
delete_pipeline(*, id, error_trace=None, filter_path=None, human=None, pretty=None)

删除 Logstash 管道。 删除用于 Logstash 中央管理的管道。 如果请求成功,您将收到带有适当状态码的空响应。

https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline

Parameters:
Return type:

ObjectApiResponse[Any]

get_pipeline(*, id=None, error_trace=None, filter_path=None, human=None, pretty=None)

获取 Logstash 管道。 获取用于 Logstash 中央管理的管道。

https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline

Parameters:
Return type:

ObjectApiResponse[Any]

put_pipeline(*, id, pipeline=None, body=None, error_trace=None, filter_path=None, human=None, pretty=None)

创建或更新 Logstash 管道。

创建用于 Logstash 中央管理的管道。 如果指定的管道已存在,则会被替换。

https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline

Parameters:
Return type:

ObjectApiResponse[Any]