Hi Guys,
When I run the below query, it only returns the eventHour up to 14 (2pm) when there are events up to eventHour 18 (6pm).
I tried to add |search eventHour=15,16,17,18 after the |eval eventHour and it returned the stats on those eventHours.
What should I do to display the stats on all eventHours? Thank you!
---search---
| eval eventHour=strftime(_time,"%H")
| table eventHour STORAGECYCLEGROUPID DESTINATIONRACKLOCATION AISLE BAY LEVEL
| sort STORAGECYCLEGROUPID EVENTTS ASC
| autoregress STORAGECYCLEGROUPID as SC
| eval SC2=(STORAGECYCLEGROUPID-SC)
| eval cyclecheck=if(SC2=="0",0,1)
| autoregress BAY as BAY2
| eval baycheck=abs(BAY-BAY2)
| autoregress LEVEL as LEVEL2
| eval levelcheck=abs(LEVEL-LEVEL2)
| eval stops=if(cyclecheck=1 OR baycheck>1 OR levelcheck>0,1,0)
| stats max(eventHour) as eventHour sum(stops) as numberofstop by STORAGECYCLEGROUPID
| chart count over eventHour by numberofstop
| rename 1 as "1 Stop", 2 as "2 Stops", 3 as "3 Stops", 4 as "4 Stops"
... View more