简体   繁体   English

如何使用 Elasticsearch 中的摄取管道在无痛脚本中插入摄取节点 IP?

[英]How can I insert ingest node IP in painless script using ingestion pipeline in Elasticsearch?

I want to insert the ingest node IP by default using a painless script.我想默认使用无痛脚本插入摄取节点 IP。 Or is there any other way to insert the elastic search machines IP into the documents automatically?或者有没有其他方法可以将弹性搜索机 IP 自动插入到文档中?

There is no way that I know of to get that information form within an ingest pipeline.据我所知,无法在摄取管道中获取该信息表单。

If you need to know at the cluster level, how many documents each ingest node has processed, you can find that out using the following call.如果您需要在集群级别知道每个摄取节点处理了多少文档,您可以使用以下调用找到它。

GET _nodes/stats?filter_path=**.ingest

In the response, you'll get the stats of each ingest pipeline and how many documents each of their processors have processed.在响应中,您将获得每个摄取管道的统计信息以及每个处理器已处理的文档数量。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM