Calculate time length between two logs using timestamp?

Hi!!!
I wonder does Logstash provides option to calculate time length between two logs using timestamp?
Something like this log2.timestamp - log1.timestamp.

https://www.elastic.co/guide/en/logstash/current/plugins-filters-elapsed.html :slight_smile: