Getting Data In

How to configure props.conf to line break XML events?

jedatt01
Builder

I have a source that has multiple xml files that are being parsed a single event. I'm trying to split them up using line_breaker but not having any luck. See events below. Most of the body has been cut out but these are the opening and closing tags for each xml file. Also, these are extremely large xml files and I believe that i'm running into event size/line limits as well.

<?xml version="1.0" encoding="utf-8"?><ns0:MrmMessages_3_0 xmlns:ns0="urn:hl7-org:v3"><CCD xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns0:MrmMessages_3_0>
-----------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><ns0:MrmMessages_3_0 xmlns:ns0="urn:hl7-org:v3"><CCD xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns0:MrmMessages_3_0>
-----------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><ns0:MrmMessages_3_0 xmlns:ns0="urn:hl7-org:v3"><CCD xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns0:MrmMessages_3_0>
-----------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><ns0:MrmMessages_3_0 xmlns:ns0="urn:hl7-org:v3"><CCD xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns0:MrmMessages_3_0>
0 Karma

russellliss
Path Finder

Try this in your props.conf

[your-sourcetype]
KV_MODE = xml
BREAK_ONLY_BEFORE = <ns0:MrmMessages_3_0
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = true
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...