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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...