Splunk Search

lookup each value in multivalue field

nwong
Splunk Employee
Splunk Employee

I need to lookup each value in a multivalue field from a lookup table but it seems to only return the first field.
Something like ...|makemv delim="," mvfield|mvexpand mvfield|lookup lookup_table.csv mvfield OUTPUT outfield |table mvfield outfield

would produce something like:

abcdef 1

defddd

dddfeds

However, if I manually created some multivalue fields in the search command, all seems to work fine?

...|eval mv="abab,ddde,ggdfd"|makemv delim="," mv|mvexpand mv|lookup lookup_table.csv mv OUTPUT outfield |table mv outfield

Any idea?

Tags (2)

ankurda
New Member

Hi,

I am facing the exact same problem. Did you get this working?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...