hi
I use this search in order to retrieve events between 9h and 17h
Now I also want to catch the events only between the monday and the friday
How to do this please?
`CPU`
| bin _time span=5h
| eval slottime = strftime(_time, "%H%M")
| where (slottime >= 900 AND slottime <= 1700)
strftime with %w then where value between 1 and 5 inclusive
like this??
`CPU`
| bin _time span=5h
| eval slottime = strftime(_time, "%H%M")
| eval week =strftime(_time, "%W")
| where (slottime >= 900 AND slottime <= 1700) AND (week >=1 AND week <=5)
The w needs to be lower case