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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...