So I have a set of data with fields such as TimeCreated and TimeAssigned , which after some calculations I am left with the data and a new field which is the time taken to be assigned.
I want to group the data into time blocks, such as amount of events assigned within 30 minutes, 1 hour etc... Not specifically 30 minute intervals though.
I have no problem getting the first block, but how would I search the first results again in order to filter them into another time block.
Any Help is appreciated, thanks.
Edit: An example of what Im doing
Each event is a ticket that has a field called TimeCreated, that is the time the ticket was created by the system, and a field called TimeAssigned, the time it was assigned to a user.
| eval itime=strptime(TimeCreated,"%Y-%m-%d %H:%M:%S")
| eval otime=strptime(TimeAssigned,"%Y-%m-%d %H:%M:%S")
| eval TimeDiff=(otime-itime)
| eval field_in_hhmmss=tostring(TimeDiff, "duration")
This is what I have to find the difference between them, and it works perfectly but what I am looking for is how to filter the results of this search and get,for example, the total tickets assigned before 45minutes, between 1 and 2 hours etc.
... View more