Splunk Enterprise Security

In Splunk Enterprise Security, how do you search for matching events between two groups of IP addresses?

New Member

I am trying to search for events that contain one IP from each of the two groups of IP addresses. For instance:

index=main sourcetype=* | 
search ("" OR "" OR "" OR "" OR "") AND
("" OR "" OR "" OR "")

I am not specifying the source type or fields because I also want to search through multiple source types.

I couldn't find an answer similar to this issue. I also looked at subsearches, but didn't see how they would solve this.

0 Karma


index=main sourcetype=* | lookup ips AS ips OUTPUT ips1 ips2 | mvexpand ips1 ips2 | stats values(_raw) count DC(ips) AS dc by ips1,ips2 | where dc==1

I can't test it since you don't have logs.

0 Karma

Super Champion

is it possible for you to share some sample data and sample output of what you're looking for? scrubbed of pii/phi?

0 Karma

New Member

Negative. Company policy.

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!