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!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

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