Getting Previous field values

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?

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