Splunk Search

How to split multiple vlaues in single cell to new line in join search

gravi
Explorer

There few columns in the table that has multiple values in single line. I need them to be in separate/ newlines.

Current result preview: 4 12 22 87 2
Expected result view :
4
12
22
87
2

How do i achieve this?

0 Karma
1 Solution

to4kawa
Ultra Champion
| makeresults
| eval sample="4 12 22 87 2"
| makemv delim=" " sample

Hi, If you just want to separate it, you can use makemv command.

View solution in original post

to4kawa
Ultra Champion
| makeresults
| eval sample="4 12 22 87 2"
| makemv delim=" " sample

Hi, If you just want to separate it, you can use makemv command.

anthonymelita
Contributor

You can also use the split() eval command.
| makeresults
| eval sample="4 12 22 87 2"
| eval sample=split(sample, " ")
| mvexpand sample

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...