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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...