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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...