To retrieve two particular values from logstash and perform mathematical operation


(Rashmi S) #1

{"xn":"CSI_IUCPBySL","var":"DEFAULT","c":"olpv081040817257150214","x":"olpv081040817257150214","xst":"20170914T150218.840","xet":"20170914T150218.936","in":{"CallID":"olpv081040817257150214","SearchBy":"TN","TNorBAN":"4046307783"}

This is the log ,I need to retrieve the values xet(End Time) and xst(Start Time) alone and subtract xst from xet to get the duration,can I do this usuing grok


(Magnus B├Ąck) #2

You can use grok but it's better to use a json filter (or possibly a json codec).


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.