Hello,
I have two types of events: clicks and searches.
I want to group two searches into a transaction if
they don't have any other events in between
they are within 5 seconds from each other
Input:
time=1505404370 query=foo type=search
time=1505404371 query=foo type=click
time=1505404372 query=bar type=search
time=1505404373 query=baz type=search
time=1505404374 query=bak type=search
time=1505404375 query=ban type=search
Output:
time=1505404372 query=bar type=search
time=1505404373 query=baz type=search
--------------------
time=1505404374 query=bak type=search
time=1505404375 query=ban type=search
... View more