Splunk Search

How to split a multivalue field for a data model/pivot table to treat each field value separately?

spammenot66
Contributor

I have a field states, which is delimited by |. For example states=NY|VA|MO|GA
I'm able to get it to expand and treat each as a seperate value:

dedup states | table states | makemv delim="|"  states| mvexpand states|...

How do I do this within a data model and force it to treat each state as a separate value in these scenarios?

0 Karma

ajayabburi508
Path Finder

|eval states=split(states,"|") |mvexpand states | field states

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...