Knowledge Management

Is there a dedup alternative for removing identical events?

TammyF
New Member

Currently my query uses dedup to remove identical events:

dedup comp_id _time

Is there an alternative to dedup to only see unique events?

 

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The dc function just gives a count of unique values of the specified field.  It's not the same as dedup.  Try this as a dedup alternative:

stats values(*) as * by comp_id check_id _time

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...