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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...