As part of my requirements, I have to calculate the duration between two different logs using Splunk query. For example:
Log 2: 2020-04-22 13:12 ADD request received ID : 123
Log 1 : 2020-04-22 12:12 REMOVE request received ID : 122
The common String between two logs is " request received ID :" and unique strings between two logs are "ADD", "REMOVE". And the expected output duration is 1 hour.
Any help would be appreciated. Thanks