# Getting Previous field values

**URL:** <https://discuss.elastic.co/t/getting-previous-field-values/2663>\
**Category:** Logstash\
**Created:** [June 15, 2015, 6:23am UTC](https://discuss.elastic.co/t/getting-previous-field-values/2663 "2015-06-15T06:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddhant\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Siddhant\_Agarwal](https://discuss.elastic.co/u/Siddhant_Agarwal)\
**Post date:** [June 15, 2015, 6:23am UTC](https://discuss.elastic.co/t/getting-previous-field-values/2663/1 "2015-06-15T06:23:45Z")

</div>

Is there a way in which i can access just previous field value(as appeared in log file) and apply arithmetic operation with current field value of same field in any one of log stash, elastic search or kibana?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 10, 2015, 5:48pm UTC](https://discuss.elastic.co/t/getting-previous-field-values/2663/2 "2015-07-10T17:48:23Z")

</div>

Logstash could theoretically do it (as opposed to ES and Kibana) but I don't think any of the standard plugins has that feature..

---

<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:** [July 6, 2017, 5:34am UTC](https://discuss.elastic.co/t/getting-previous-field-values/2663/3 "2017-07-06T05:34:59Z")

</div>


