Splunk Search

Remove duplicate value from fields

timAugustine
Loves-to-Learn

I'm trying to remove the duplicates in a field as described below


EVENT_No     |     Fieldname
1                               a
                                  b
                                  c

2                               a
                                  b

3                               c
                                  a

Is there a way I can make it look like this?

EVENT_No     |     Fieldname
1                               a
                                  b
                                  c

0 Karma

timAugustine
Loves-to-Learn

Hi all,

I found a solution to this I used mvexpand command this way:

..| mvexpand Fieldname | dedup Fieldname | format

This pretty much was what I was looking for!

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...