Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
246 views
in Technique[技术] by (71.8m points)

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?

question from:https://stackoverflow.com/questions/66059424/how-can-i-insert-ingest-node-ip-in-painless-script-using-ingestion-pipeline-in-e

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...