# Is there any way to perform arithmetic calculations on values fetched from csv using logsatsh?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-perform-arithmetic-calculations-on-values-fetched-from-csv-using-logsatsh/156979>\
**Category:** Logstash\
**Created:** [November 16, 2018, 5:30am UTC](https://discuss.elastic.co/t/is-there-any-way-to-perform-arithmetic-calculations-on-values-fetched-from-csv-using-logsatsh/156979 "2018-11-16T05:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![puru](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@puru](https://discuss.elastic.co/u/puru)\
**Post date:** [November 16, 2018, 5:30am UTC](https://discuss.elastic.co/t/is-there-any-way-to-perform-arithmetic-calculations-on-values-fetched-from-csv-using-logsatsh/156979/1 "2018-11-16T05:30:28Z")

</div>

hello,  
i need to calculate difference between two fields(rows) of the same column and store the result in the next column on the values fetched from csv. Is it possible through logstash, if so how?

Thanks in advance..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 14, 2018, 5:30am UTC](https://discuss.elastic.co/t/is-there-any-way-to-perform-arithmetic-calculations-on-values-fetched-from-csv-using-logsatsh/156979/2 "2018-12-14T05:30:31Z")

</div>

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