Reputation: 1
I fed a CSV file to the Logstash, which looks like below:
data value result
d1 v1 12
d2 v2 1
d3 v3 4
I want a sum of "result" column in a single variable or as a extra column in CSV.
**Total
17**
Kindly Help...!!!
Upvotes: 0
Views: 914
Reputation: 2762
Assuming you have your data split into explicit fields, you'd want to go with the sum aggregator: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-sum-aggregation.html
Upvotes: 1