Splunk Search

How to get a new line while adding two values

Vignesh-107
Path Finder

Need to get a new line (\n) after the value, is it possible ?

eval check=case( 'value' > 0,'value'+" "+"Good", 'value'<0,'value'+"Bad ",'value=0'+" "+"OKay")

i am getting results like below

5 Good
-2 Bad
0 Okay
1 Good
0 Okay

 

is it possible to get like below

5
Good
-2
Bad
0
Okay
1
Good
0
Okay

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex mode=sed "s/\s/\n/g"
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...