How to add the count of 2 values in logstash

Hi All,

I have a requirement in logstash.

For an example in fruits keyword i have 3 values

1- Mangoes ---- 5
2- Oranges -----6
3- Brinjal -----7

But in Kibana i need to visualize the sum of only 2 objects as shown below,But without using the inbuilt count plugin available in Kibana.

Fruits count
Mangoes 5
Oranges 6
Brinjal 7
Total no of fruits are 11

What is the filter code i need to write in the Logstash.conf file in order to achieve this.

Note i am using elk version 7.2 and all the values are coming from the same keyword.value

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