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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...