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!

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