Splunk Search

how remove extra new line?

alina_mandarina
New Member

alt text
i need that all lines will be one line, without newline

0 Karma

dmarling
Builder

At search time you can run this sed statement to remove all line breaks:

search string
| rex mode=sed field=_raw "s/\n/ /g"

Here's a regex 101 example showing the results: https://regex101.com/r/uNUBum/1

If this comment/answer was helpful, please up vote it. Thank you.
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...