Getting Data In

How to edit my props.conf to linebreak a Simple XML log into multiple events?

mmensch
Path Finder

Hi,

I have been trying to implement a stanza to break a long line of XML into multiple events, but it is not functioning as expected. As you can see, it is Simple XML with every "event" ending with the "/>" characters.

Sample XML:

<SAMPLE LOG Time="2016-11-07T03:19:01" User="xxxx" Action="yyyyy" /><SAMPLE LOG Time="2016-11-07T03:19:01" User="xxxx" Action="yyyyy"/>

Props.conf

[source::source-to-break]
LINE_BREAKER = />
SHOULD_LINEMERGE=true

Any help here would be appreciated.

0 Karma

rodrigorsilva
Communicator

Hi,

You can try this:

[ source::source-to-break]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE="\/>

Tks

Rodrigo Ribeiro

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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