Splunk Search

Is there a "keepdup" command?

hirschel
New Member

HI, I am looking for something that is the 'opposite' of dedup; where the duplicate events are kept, and singular events are filtered out.

Any suggestions?

Labels (1)
Tags (2)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

You can do something like below:

index=someindex | stats count by _raw

| where count>1

The above query will return events which are duplicated.

————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...