Splunk Search

How to multivalue field creation where I separate two lines?

venky1544
Builder

how can i create a multivalue field using makeresults command like

 

|makeresults |eval value_1= " one" 

"two"

there should be a new line between the two words 

Labels (1)
0 Karma

somesoni2
Revered Legend

Try something like these

| makeresults | eval value_1=split("one two"," ")
OR
| makeresults | eval value_1="one,two" | makemv value_1 delim=","
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the split function.

| makeresults |eval value_1= " one" 
"two"
| eval value_1 = split(value_1, "
")

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...