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 the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...