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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...