Splunk Search

correlate two seperate searchs

JWBailey
Communicator

What is the most efficient way to correlate results from two separate searches? I can perform two searches, but only want to see the end results when they meet very specific criteria applied to both original search results.

For example:

Search 1: [Sourcetype = Enter]

Returns results like this:

Sourcetype = Enter

Time = 11:05AM

Employee = Sara

Door = West#3

Shirt = Red

Search 2: [Sourcetype = Exit]

Returns results like this:

Sourcetype = Exit

Time = 11:08AM

Employee = Sara

Door = West#3

Shirt = Blue

I am only interested in the specific situation where someone enters and leaves through the same door, within 5 minutes, and is wearing a different shirt (the events above).

I am not even sure the best approach in general to take here.

Any help is appreciated.

Thanks.

0 Karma

somesoni2
Revered Legend

How about this

sourcetype=Entry OR sourcetype=Exit | transaction Employee,Door | where duration<300 AND mvcount(Shirt)>1
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...