Calculate elapsed time in Kibana?

Hi @TXBigDawg1836 Welcome to the community

Yup add a runtime field to the Data View

here is the code

long datenow = new Date().getTime();
long datewas = doc['@timestamp'].value.getMillis();
emit (datenow - datewas);

Create / Set the Field

Chose your format....

In Discover

Now Table...

1 Like