Getting Data In

Multivalue Field doubt

SoumyaSengupta9
Explorer

I have 2 columns in a table each of which have 1 multivalue field.

ColumnA  ColumnB

abc              abc

def               ghi

ghi

jkl

I want to create a new column where i do an except between the 2 multivalue columns - i.e  as per the above table the result should be def, jkl.

I know we can use ->
| eval columnC = mvfilter(!match(column, searchText))
to achieve the same but the searchText needs to be static & i can't use another fields value. How can i achieve the result i want ?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval ColumnC=mvmap(ColumnA,if(isnull(mvfind(ColumnB,ColumnA)),ColumnA,null()))

Note, you need version 8.0.0 or better for the mvmap function.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...