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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...