Calculate new fields dynamically in elasticsearch

Hello,

I am loading data from database into elasticsearch using logstash ,

during loading, does Elastic Search allows us to create Trigger-like functionality with our own rules to create new fields?
Ex:-
can we add new fields dynamically to calculate the sum of 2 fields(x & y) and create a new field(z) to append the value(z = x + y) while loading.

Yes, I think what you are looking for is ingest functionality:
https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-processors.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.