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!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...