I am having some issues getting this to work correctly. It does not return all the results. I have different records in different sourcetypes under the same index.
sourcetypeA eventID = computerName.sessionID
infoIWant1 = someinfo1
infoIWant2 = someinfo2
SourcetypeB's events are broken into events that I need to correlate.
sourcetypeB
event1-------------------------------------------------------
sessionID= sessionNo1
direction=receive
-----------------------------------------------------------------
event2--------------------------------------------------------
sessionID=sessionNo1
direction=send
-----------------------------------------------------------------
I attempted the below search using the transaction command to correlate the records in sourcetypeB.
index=INDEX sourcetype=sourcetypeA
| rex field=eventID "\w{0,30}+.(?<sessionID>\d+)"
| do some filter on infoIWant fields here
| join type=inner sessionID
[ search index=INDEX sourcetype=sourcetypeB
| transaction sessionID
| where eventcount==2
| fields sessionID duration ]
| chart count by duration
... View more