Getting Data In

How to extract events from an input file ( xml format) that has no line breaks?

joechakkola1
Explorer

I have a log file that has contents similar to below. I would like the events separated based on the line break character. My props file has BREAK_ONLY_BEFORE = and SHOULD_LINEMERGE = true but I continue to get the entire contents of the file as one event. Can you help me with splitting the contents of the below file into separate events using as the line break?

alt text

0 Karma
1 Solution

FrankVl
Ultra Champion

Your question is rather confusing. Your title states your data has no line breaks, yet you want us to help you break the data by linebreak?

It looks like your data is a bunch of "plane" objects? Do you want each plane in a single event? Then try this:

LINE_BREAKER = ()\<plane\>
SHOULD_LINEMERGE = FALSE

View solution in original post

FrankVl
Ultra Champion

Your question is rather confusing. Your title states your data has no line breaks, yet you want us to help you break the data by linebreak?

It looks like your data is a bunch of "plane" objects? Do you want each plane in a single event? Then try this:

LINE_BREAKER = ()\<plane\>
SHOULD_LINEMERGE = FALSE

joechakkola1
Explorer

Thanks i was able to break the lines with LINE_BREAKER =()\<plane\>. Agreed my title was misleading. what i was trying to convey is that my data does not have any return character at the end of each line. By using the line_breaker , i was able to break up the rather long line of data into individual events.

0 Karma

FrankVl
Ultra Champion

Great 🙂

I changed my comment to an answer, so that you can accept it.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...