Splunk Dev

SPL query to find dublicate records injected to Splunk

Alankrit
New Member

Hi Team,

One of our customer reported that he was finding duplicate records in splunk ( duplicate files and duplicate data in files). We want to simulate the scenario in our lab. If someone can help to write SPL to find duplicate records.

 

Regards,

Alankrit

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@Alankrit- Below is the search you can use. But just to clarify few points:

  • This search is not very efficient and do not meant for reporting and only meant for troubleshooting purposes so you can find the source of duplicate events.
index=* sourcetype=* host=* | stats count by index, sourcetype, host, _raw | where count>1

 

I hope this helps!!! Kindly upvote if it does!!!

0 Karma
Get Updates on the Splunk Community!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...