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!

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 ...