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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...