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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...