If in doubt, append and count 😁 I have a monstrosity for you: | makeresults | eval _raw="User_Id Error_code Error_Time 121 E3002189 2021-08-27 12:01:34 249 E1000874 2021-08-27 12:05:21 121 E2000178 2021-08-27 12:27:09" | multikv noheader=f | append [ | makeresults | eval _raw="User_Id Location Login_Time Logout_Time 121 P155 2021-08-27 11:54:56 2021-08-27 12:14:19 121 U432 2021-08-27 12:22:16 2021-08-27 12:34:52 249 M127 2021-08-27 12:01:32 2021-08-27 12:35:45 249 J362 2021-08-27 12:38:25 2021-08-27 12:50:11" | multikv noheader=f ] | fields - _raw _time linecount| eval login_period_loc=Location."%".Login_Time."%".Logout_Time| stats values(Error_Time) as errortimes values(login_period_loc) as loginperiodlocs by User_Id | mvexpand loginperiodlocs | mvexpand errortimes | rename errortimes as Error_Time | eval spl=split(loginperiodlocs,"%") | eval Loc=mvindex(spl,0) | eval Start=mvindex(spl,1) | eval End=mvindex(spl,2) | fields - loginperiodlocs spl | where Error_Time>=Start AND Error_Time <= End
... View more