Accessing the previous value in a field in logstash

Relating this topic?