Splunk Search

How to search for any source IP addresses that have more than one result and sourcetype within a 5 minute period?

502087470
New Member

I'm trying to run a search on search results. The first search would bring back various logs and sourcetypes. I want to take the finished search, look at any source IP addresses that have more than 1 result and more than 1 sourcetype within a 5 minute time period. Any idea's on how I might be able to do this?

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

Without seeing your search results, these are all best guess...

... | bin span=5m _time |  stats count by source_ip sourcetype  _time | where count > 1

You can test this with internal logs easily :

index=_internal | stats count by sourcetype source _time | bin span=5m _time | where count > 1
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...