简体   繁体   中英

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. Or is there any other way to insert the elastic search machines IP into the documents automatically?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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