BTW i refined my search:
index=BLA source=BLA
| stats Latest(LogType) as Status Latest(Result) as Result Latest(_time) as When by PackageName
| table When, PackageName, Status, Result
| join Type=Left PackageName[ search index=BLA source=BLA
| eval EndTime = if(Result="OK", _time, null)
| eval StartTime = if(LogType ="START", _time, null)
| stats Latest(StartTime) as StartTime Latest(EndTime) as EndTime by PackageName ExecutionInstanceGUID
| eval Duration = (EndTime-StartTime)
| where (Duration != "" OR Duration >= 0)
| stats avg(EndTime) as AVGEndTime avg(Duration) as AVGDuration avg(StartTime) as AVGStartTime by PackageName
]
| fieldformat AVGStartTime = strftime(AVGStartTime,"%H:%M:%S")
| fieldformat AVGEndTime = strftime(AVGEndTime,"%H:%M:%S")
| fieldformat When = strftime(When,"%Y-%m-%d %H:%M:%S")
| eval AVGDuration = tostring(round(AVGDuration, 0),"duration")
| eval Duration = if(Status== "START", tostring(now() - When ,"duration"), "" )
| eval Timing = if (Status== "START", if( Duration > AVGDuration, "InLate", "OnTime"), "")
| eval AlertLevel = case(Result=="OK", if(Timing=="InLate", 0, 1), Result=="WARNING",2,Result=="KO",3)
| rangemap field=AlertLevel guarded=0-0 low=1-1 elevated=2-2 severe=3-3
| table When PackageName Status Result Duration AVGDuration Timing AVGStartTime AVGEndTime range
| sort Result, -Status, Timing, -When
... View more