<?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: Why are my Scripted Input XML events truncated to 4 lines? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371842#M67484</link>
    <description>&lt;P&gt;Yeah, the sourcetype is specified in the app's inputs.conf.&lt;BR /&gt;&lt;BR /&gt;
Your change seems to have done the trick.  Very odd.  Thanks.  Add it as an answer and I will mark it as such.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 21:18:18 GMT</pubDate>
    <dc:creator>jercra</dc:creator>
    <dc:date>2017-03-23T21:18:18Z</dc:date>
    <item>
      <title>Why are my Scripted Input XML events truncated to 4 lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371838#M67480</link>
      <description>&lt;P&gt;I have scripted input that's calling a simple rest service to get a list of messages.  No matter what settings I put in props.conf, I can only see 4 lines of XML on the indexer.&lt;/P&gt;

&lt;P&gt;The XML result looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;messages_list&amp;gt;
 &amp;lt;audit&amp;gt;
    &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt;
    &amp;lt;created_at&amp;gt;2017-03-20T13:54:31-06:00&amp;lt;/created_at&amp;gt;
    &amp;lt;message&amp;gt;Node ip-172-31-28-26 activated&amp;lt;/message&amp;gt;
    &amp;lt;id&amp;gt;4&amp;lt;/id&amp;gt;
    &amp;lt;node&amp;gt;02&amp;lt;/node&amp;gt;
  &amp;lt;/audit&amp;gt;
  &amp;lt;audit&amp;gt;
    &amp;lt;code&amp;gt;31&amp;lt;/code&amp;gt;
    &amp;lt;created_at&amp;gt;2017-03-20T13:50:08-06:00&amp;lt;/created_at&amp;gt;
    &amp;lt;message&amp;gt;Node ip-172-31-28-26 is deactivated&amp;lt;/message&amp;gt;
    &amp;lt;id&amp;gt;3&amp;lt;/id&amp;gt;
    &amp;lt;node&amp;gt;02&amp;lt;/node&amp;gt;
  &amp;lt;/audit&amp;gt;
  &amp;lt;audit&amp;gt;
    &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt;
    &amp;lt;created_at&amp;gt;2017-03-20T13:49:44-06:00&amp;lt;/created_at&amp;gt;
    &amp;lt;message&amp;gt;Node ip-172-31-28-26 activated&amp;lt;/message&amp;gt;
    &amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;
    &amp;lt;node&amp;gt;02&amp;lt;/node&amp;gt;
  &amp;lt;/audit&amp;gt;
  &amp;lt;audit&amp;gt;
    &amp;lt;code&amp;gt;32&amp;lt;/code&amp;gt;
    &amp;lt;created_at&amp;gt;2017-03-20T13:47:07-06:00&amp;lt;/created_at&amp;gt;
    &amp;lt;message&amp;gt;Node ip-172-31-28-26 added to cluster&amp;lt;/message&amp;gt;
    &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;
    &amp;lt;node&amp;gt;02&amp;lt;/node&amp;gt;
  &amp;lt;/audit&amp;gt;
&amp;lt;/messages_list&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only thing that shows up in Splunk is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;messages_list&amp;gt;
 &amp;lt;audit&amp;gt;
    &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've set TRUNCATE to 1000000 and to 0&lt;BR /&gt;
I've set a multitude of linebreaking (Before, after, linebreak, linemerge=true|false, etc.)&lt;/P&gt;

&lt;P&gt;Nothing changes.  It's always only 4 lines.&lt;BR /&gt;
TCPDump shows the data making it to the indexer. &lt;/P&gt;

&lt;P&gt;Current props.conf:&lt;BR /&gt;
[live_messages]&lt;BR /&gt;
 NO_BINARY_CHECK = 1&lt;BR /&gt;
 SHOULD_LINEMERGE = false&lt;BR /&gt;
 TRUNCATE=0&lt;BR /&gt;
 MAX_EVENTS = 10000&lt;BR /&gt;
 pulldown_type = 1&lt;BR /&gt;
 KV_MODE=xml&lt;BR /&gt;
 LINE_BREAKER = (&amp;lt;\/messages_list&amp;gt;)&lt;BR /&gt;
 DATETIME_CONFIG = CURRENT&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371838#M67480</guid>
      <dc:creator>jercra</dc:creator>
      <dc:date>2020-09-29T13:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my Scripted Input XML events truncated to 4 lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371839#M67481</link>
      <description>&lt;P&gt;Can you share your props.conf for this sourcetype? Where is this script runs, UF or full Splunk Enterprise instance?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 19:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371839#M67481</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-23T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my Scripted Input XML events truncated to 4 lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371840#M67482</link>
      <description>&lt;P&gt;I've gone through many, many iterations of props.conf.  My current iteration looks like:&lt;BR /&gt;
[live_messages]&lt;BR /&gt;
 NO_BINARY_CHECK = 1&lt;BR /&gt;
 SHOULD_LINEMERGE = false&lt;BR /&gt;
 TRUNCATE=0&lt;BR /&gt;
 MAX_EVENTS = 10000&lt;BR /&gt;
 pulldown_type = 1&lt;BR /&gt;
 KV_MODE=xml&lt;BR /&gt;
 LINE_BREAKER = (&amp;lt;\/messages_list&amp;gt;)&lt;BR /&gt;
 DATETIME_CONFIG = CURRENT&lt;/P&gt;

&lt;P&gt;The script runs on a forwarder and is calling a webservice on localhost.  It's a really simple service that just returns a single XML document.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371840#M67482</guid>
      <dc:creator>jercra</dc:creator>
      <dc:date>2020-09-29T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my Scripted Input XML events truncated to 4 lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371841#M67483</link>
      <description>&lt;P&gt;Pretty strange. Would you mind trying with this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[live_messages]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=\&amp;lt;messages_list\&amp;gt;)
TRUNCATE=0
MAX_EVENTS = 10000
KV_MODE=xml
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm assuming live_messages is the sourcetype that you assign to your scripted input in inputs.conf.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371841#M67483</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-23T21:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my Scripted Input XML events truncated to 4 lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371842#M67484</link>
      <description>&lt;P&gt;Yeah, the sourcetype is specified in the app's inputs.conf.&lt;BR /&gt;&lt;BR /&gt;
Your change seems to have done the trick.  Very odd.  Thanks.  Add it as an answer and I will mark it as such.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-Scripted-Input-XML-events-truncated-to-4-lines/m-p/371842#M67484</guid>
      <dc:creator>jercra</dc:creator>
      <dc:date>2017-03-23T21:18:18Z</dc:date>
    </item>
  </channel>
</rss>

