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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...