- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
02-09-2021
12:54 AM
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)
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
02-09-2021
02:28 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
02-09-2021
01:13 AM
strftime with %w then where value between 1 and 5 inclusive
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
02-09-2021
02:14 AM
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)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
02-09-2021
02:28 AM
The w needs to be lower case
