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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...