<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue: 1 XML file is splitting into 2 event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543967#M90787</link>
    <description>&lt;P&gt;Thanks. It worked, need to be deployed also in Indexers.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 09:22:02 GMT</pubDate>
    <dc:creator>mariannedave</dc:creator>
    <dc:date>2021-03-16T09:22:02Z</dc:date>
    <item>
      <title>Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543789#M90766</link>
      <description>&lt;P&gt;&lt;STRONG&gt;First Issue:&lt;/STRONG&gt; I've been trying to ingest 1 XML file into 1 event only in Splunk. But Splunk always splitting it into 2 events.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Example XML file:&lt;/EM&gt;&lt;BR /&gt;##################&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&amp;gt;&lt;BR /&gt;&amp;lt;IntegrationTransaction&amp;gt;&lt;BR /&gt;&amp;lt;TransactionMetaData xmlns=""&amp;gt;&lt;BR /&gt;&amp;lt;SourceSystemName&amp;gt;SystemNameSource&amp;lt;/SourceSystemName&amp;gt;&lt;BR /&gt;&amp;lt;TransactionType&amp;gt;ValidTrans&amp;lt;/TransactionType&amp;gt;&lt;BR /&gt;&amp;lt;UniqueTransactionID&amp;gt;DFGDFGFG&amp;lt;/UniqueTransactionID&amp;gt;&lt;BR /&gt;&amp;lt;TransactionDateTime&amp;gt;2021-03-12T17:38:02.725+01:00&amp;lt;/TransactionDateTime&amp;gt;&lt;BR /&gt;&amp;lt;/TransactionMetaData&amp;gt;&lt;BR /&gt;&amp;lt;Payload xmlns=""&amp;gt;&lt;BR /&gt;&amp;lt;ValidatedSalesTransactions&amp;gt;&lt;BR /&gt;&amp;lt;Transaction&amp;gt;&lt;BR /&gt;&amp;lt;RetailID&amp;gt;XZ0051&amp;lt;/RetailID&amp;gt;&lt;BR /&gt;&amp;lt;/Transaction&amp;gt;&lt;BR /&gt;&amp;lt;/ValidatedSalesTransactions&amp;gt;&lt;BR /&gt;&amp;lt;/Payload&amp;gt;&lt;BR /&gt;&amp;lt;/IntegrationTransaction&amp;gt;&lt;BR /&gt;##################&lt;/P&gt;&lt;P&gt;&lt;EM&gt;transforms.conf&lt;/EM&gt;&lt;BR /&gt;##################&lt;BR /&gt;[setnull]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;BR /&gt;&lt;BR /&gt;[accept_xml_files]&lt;BR /&gt;REGEX = &amp;lt;?xml version&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;##################&lt;/P&gt;&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;BR /&gt;##################&lt;BR /&gt;[test_XML_sourcetype]&lt;BR /&gt;BREAK_ONLY_BEFORE = goblygook&lt;BR /&gt;MAX_EVENTS = 200000&lt;BR /&gt;DATETIME_CONFIG = NONE&lt;BR /&gt;CHECK_METHOD = modtime&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;LEARN_MODEL = false&lt;BR /&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;TRUNCATE = 0&lt;BR /&gt;kv_mode = xml&lt;BR /&gt;TRANSFORMS-set = setnull, accept_xml_files&lt;BR /&gt;##################&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inputs.conf&lt;/EM&gt;&lt;BR /&gt;##################&lt;BR /&gt;[monitor:///tmp/testXML/*.xml]&lt;BR /&gt;index = test_XML_index&lt;BR /&gt;sourcetype = test_XML_sourcetype&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;##################&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Result in Splunk:&lt;/EM&gt;&lt;BR /&gt;##################&lt;BR /&gt;First Event:&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&amp;gt;&lt;BR /&gt;&amp;lt;IntegrationTransaction&amp;gt;&lt;BR /&gt;&amp;lt;TransactionMetaData xmlns=""&amp;gt;&lt;BR /&gt;&amp;lt;SourceSystemName&amp;gt;SystemNameSource&amp;lt;/SourceSystemName&amp;gt;&lt;BR /&gt;&amp;lt;TransactionType&amp;gt;ValidTrans&amp;lt;/TransactionType&amp;gt;&lt;BR /&gt;&amp;lt;UniqueTransactionID&amp;gt;DFGDFGFG&amp;lt;/UniqueTransactionID&amp;gt;&lt;BR /&gt;##################&lt;BR /&gt;##################&lt;BR /&gt;Second Event:&lt;BR /&gt;&amp;lt;TransactionDateTime&amp;gt;2021-03-12T17:38:02.725+01:00&amp;lt;/TransactionDateTime&amp;gt;&lt;BR /&gt;&amp;lt;/TransactionMetaData&amp;gt;&lt;BR /&gt;&amp;lt;Payload xmlns=""&amp;gt;&lt;BR /&gt;&amp;lt;ValidatedSalesTransactions&amp;gt;&lt;BR /&gt;&amp;lt;Transaction&amp;gt;&lt;BR /&gt;&amp;lt;RetailID&amp;gt;XZ0051&amp;lt;/RetailID&amp;gt;&lt;BR /&gt;&amp;lt;/Transaction&amp;gt;&lt;BR /&gt;&amp;lt;/ValidatedSalesTransactions&amp;gt;&lt;BR /&gt;&amp;lt;/Payload&amp;gt;&lt;BR /&gt;&amp;lt;/IntegrationTransaction&amp;gt;&lt;BR /&gt;##################&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/U&gt; Second event always starts with &amp;lt;TransactionDateTime&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second Issue: &lt;/STRONG&gt;Splunk indexing it not real time. Sometimes it takes 30mins-45mins to be available in Splunk.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 08:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543789#M90766</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-15T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543792#M90768</link>
      <description>&lt;P&gt;If you do not set timestamp prefix Splunk uses possible timestamp pattern to break events;&lt;/P&gt;&lt;P&gt;Please try below props&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test_XML_sourcetype]
BREAK_ONLY_BEFORE=\&amp;lt;\?xml version=
CHARSET=UTF-8
MAX_EVENTS=1000
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TIME_PREFIX=\&amp;lt;TransactionDateTime\&amp;gt;
category=Application
disabled=false
LINE_BREAKER=\&amp;lt;\?xml version=
TRANSFORMS-set = setnull, accept_xml_files&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543792#M90768</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-15T09:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543835#M90769</link>
      <description>&lt;P&gt;Thanks for the suggestion. I tried that but, still 1 XML file is being split into 2 event.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543835#M90769</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-15T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543837#M90770</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you try with below changes.&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;LINE_BREAKER=([\r\n]+)\&amp;lt;\?xml version=&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543837#M90770</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-15T11:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543841#M90771</link>
      <description>&lt;P&gt;This was a tested config, are you sure you put these settings on indexers? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543841#M90771</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-15T11:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543842#M90772</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. I've tried that but, still 1 XML file is being split into 2 events.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543842#M90772</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-15T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543844#M90773</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you take a sample data and ingest it through Add data option. And Go to Advanced settings and Apply the Magic 6 and see where exactly is the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543844#M90773</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-15T12:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543933#M90780</link>
      <description>&lt;P&gt;Hi - sorry, what is the Magic 6?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 03:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543933#M90780</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-16T03:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543937#M90781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ingest data through the Add-data option. And apply below six attributes on it.&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;LINE_BREAKER=&lt;SPAN&gt;([\r\n]+)\&amp;lt;\?xml version=&lt;/SPAN&gt;&lt;BR /&gt;TIME_PREFIX=\&amp;lt;TransactionDateTime\&amp;gt;&lt;BR /&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3Q+%z:%z&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;TRUNCATE=20000&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 04:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543937#M90781</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-16T04:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543945#M90782</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried the sample data and ingest it through Add data option and config the Advanced settings based on your suggestion. It worked there. But when I deployed it via Deployment Server, 1XML file is still being split into 2 events.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 06:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543945#M90782</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-16T06:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543947#M90783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you check the props.conf settings are placed in indexers are not?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543947#M90783</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-16T07:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: 1 XML file is splitting into 2 event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543967#M90787</link>
      <description>&lt;P&gt;Thanks. It worked, need to be deployed also in Indexers.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 09:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-1-XML-file-is-splitting-into-2-event/m-p/543967#M90787</guid>
      <dc:creator>mariannedave</dc:creator>
      <dc:date>2021-03-16T09:22:02Z</dc:date>
    </item>
  </channel>
</rss>

