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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...