简体   繁体   English

如何指定摄取管道

[英]How to specify the ingest pipeline

In all the elasticsearch examples I've seen so far, every index request that needs to use an ingest pipeline passes it as query parameter like到目前为止,在我见过的所有弹性搜索示例中,每个需要使用摄取管道的索引请求都将其作为查询参数传递,例如

PUT /<target>/_doc/<_id>?pipeline=my_pipeline

Is this the only way to use the pipeline when indexing documents?这是索引文档时使用管道的唯一方法吗? Or are there also other ways to utilize the pipelines?或者还有其他方法可以利用管道吗?

That's only one of the options, there are plenty of ways to leverage ingest pipelines.这只是其中一种选择,有很多方法可以利用摄取管道。 You can also:你也可以:

You can also define a default pipeline to be used when indexing documents inside an index with the index.default_pipeline setting and the index.final_pipeline setting , so as not to have to specify it in each indexing request (as in your question).您还可以使用index.default_pipeline设置index.final_pipeline设置定义在索引内索引文档时使用的默认管道,以便不必在每个索引请求中指定它(如您的问题中所示)。

You can also specify it in the elasticsearch Logstash output plugin or in the Filebeat elasticsearch output]( https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#pipeline-option-es ).您也可以在elasticsearch elasticsearch输出插件elasticsearch elasticsearch 输出中指定它]( https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#pipeline-option-es )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用带有 Filebeat 模块的自定义摄取管道 - How to Use a Custom Ingest Pipeline with a Filebeat Module 如何通过在 Kibana 中摄取管道将字段拆分为单词 - How split a field to words by ingest pipeline in Kibana 如何在设置处理器中设置条件(摄取节点管道) - How to set a condition in set processor (ingest node pipeline) 如何使用摄取节点管道添加自定义索引? - How to add custom index using ingest node pipeline? 如何将摄取管道与 logstash elaticsearch output 更新功能一起使用 - How to use ingest pipeline with logstash elaticsearch output update feature 如何使用elasticsearch-ruby gem在Elasticsearch中创建摄取管道 - How to create ingest pipeline in elasticsearch using elasticsearch-ruby gem Elasticsearch 摄取管道:如何递归修改 HashMap 中的值 - Elasticsearch ingest pipeline: how to recursively modify values in a HashMap 默认情况下,PUT Elasticsearch接收管道 - PUT Elasticsearch Ingest Pipeline by default 在摄取管道中使用搜索模板 - Using a search template in an ingest pipeline 如何使用 Elasticsearch 中的摄取管道在无痛脚本中插入摄取节点 IP? - How can I insert ingest node IP in painless script using ingestion pipeline in Elasticsearch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM