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!

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

Introducing the 2024 SplunkTrust!

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