I've been struggeling for a while and hopefully someone here can help me. Need to figure out if a user have an active session based on session id and user name. Active session is defined as only event 21 received OR event 25 received has newer timestamp than event 24 received. Not active session is defined if only event 21 AND event 24 is received OR event 24 received has newer timestamp than event 25 received. Search starts something like this: index=main source=events EventCode IN (21,24,25) | fields _time, User, EventCode, Session_ID, host Thanks in advance
... View more