zhyp
(zhuyangping)
August 9, 2021, 11:12am
1
Hi,
I want to calculate the value of a field in index A.
Its data comes from two other index fields, index B and index C.
Calculation formula: index A.count = index B.count - index C.count.
Condition: index A.time = index B.time, index B.time = index C.time.
Can it be achieved? Or any suggestions?
matw
(Matthias Wilhelm)
August 9, 2021, 12:38pm
2
Hi
What's not clear to me is: Are you speaking of 1 index, or are this multiple indices?
Best,
Matthias
zhyp
(zhuyangping)
August 10, 2021, 1:26am
3
Hi
They are multiple indexes.
matw
(Matthias Wilhelm)
August 10, 2021, 5:34am
4
For this case you would need to build you own custom tool, merging the data and ingesting it into a new index in Elasticsearch
matw
(Matthias Wilhelm)
August 10, 2021, 5:37am
5
Oh, maybe you could use the ingest pipeline enrich processor for that:
zhyp
(zhuyangping)
August 10, 2021, 8:00am
6
Hi
Arithmetic operators do not seem to be supported.
In 7.14 you can achieve this using lens formulas. Any plan to update?
system
(system)
Closed
September 7, 2021, 11:32am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.