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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...