Hey
I'm trying to extract the values from _time to new fields (Year, Month, Day), in order to compare average of events during current month to last 3 months, but it seems like they do not get any value.
here is my search:
'soc_events'
| search * Rule_Name="*"
| eval mytime=strftime(_time, "%Y/%m/%d")
| rex field=mytime "(\"?<Year>\d+)/(?<Month\d+)/(?<Day>\d+)\""
| stats count as Count by Year,Month,Day
| sort Year,Month,Day
| eventstats last(Month) as Current_Month last(Year) as Current_Year
| where Month!=CurrentMonth OR Year!=Current_Year
| stats avg(Count) as DayAveravge values(Month) as Months by Day
... View more