Splunk Search

Detect identical events but different hosts

mkamal18
New Member

Hello,

I am searching all identical events that came from 2 different hosts.

Dedup is not working because the host is different.

Do you have an idea about how we can detect these types of events?

Thank you in advance

0 Karma

elliotproebstel
Champion

I recently needed to find logged SourceFire events that we defined as identical because they had the same message, source IP, source port, destination IP, and destination port. In this case, I created a string by concatenating all of these values together, and used this as a unique ID to track the event:

my search | eval unique_id=msg.src_ip.src_port.dest_ip.dest_port

If you can list the fields that, together, cause you to consider two events identical, then you can do the same thing, and then add something like this to the end:

... | stats count by unique_id | where count>1

0 Karma

harsmarvania57
Ultra Champion

Hi,

Can you please try this query?

your search | dedup _raw,_time
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...