@ITWhisperer , thanks for responding. Can you also help me to calculate sum of both durations and table all 3 fields (message.duration, deltaToStart, total_time)
total_time = message.duration + deltaToStart (of type service1)
message: { [-]
duration: 182
Timeline: [ [-]
{ [-]
deltaToStart: 788
startTime: 2023-02-01T21:56:11Z
type: service1
}
{ [-]
deltaToStart: 653
startTime: 2023-02-01T21:56:11.135Z
type: service2
}
]
}
What have you tried so far?
Try something like this
| spath Timeline{} output=Timeline
| mvexpand Timeline
| spath input=Timeline
| where type="service1"
| table deltaToStart