I'm trying to create a ingest processor pipeline in kibana and could use some help. I'm trying to divide 2 values by each other which is the problem. Value 1 is an integer and Value 2 is a string. I'd like to get the cardinality/unique count of recurring strings before doing the division:
ctx.average_consumption = ctx.integer / ctx.unique_count_string
Any thoughts on how to accomplish this in Kibana?