Splunk Search

Create a table from a multivalue field

maurelio79
Communicator

Hi to all, i need to create a table for a multivalue event. Event is like:

field1=value1, field2=value2, field3="valueA,valueB,valueC,"

i need to create a table like

value1, value2, valueA
value1, value2, valueB
value1, value2, valueC

So i need to exapand to multivalue e create a row in the table for each value of field3.
mvexpand seems what i need, but at the and the table is something like:

    value1, value2, valueA
                    valueB
                    valueC

Can someone please help me?

Thanks and regards

0 Karma
1 Solution

493669
Super Champion

try this:

...|makemv field3 delim=","|mvexpand field3

try this run anywhere search:

|makeresults|eval field1="value1", field2="value2", field3="valueA,valueB,valueC"|makemv field3 delim=","|mvexpand field3

View solution in original post

0 Karma

493669
Super Champion

try this:

...|makemv field3 delim=","|mvexpand field3

try this run anywhere search:

|makeresults|eval field1="value1", field2="value2", field3="valueA,valueB,valueC"|makemv field3 delim=","|mvexpand field3
0 Karma

maurelio79
Communicator

Nice!! Thanks you! I tried mvexpand or makemv, but not together.
Thanks!

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 ...