<?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: filter data that are more than hundred K bytes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135246#M27832</link>
    <description>&lt;P&gt;it does not work, any other alternative? thks&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2014 02:09:27 GMT</pubDate>
    <dc:creator>SplunkCSIT</dc:creator>
    <dc:date>2014-04-18T02:09:27Z</dc:date>
    <item>
      <title>filter data that are more than hundred K bytes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135243#M27829</link>
      <description>&lt;P&gt;&lt;XML&gt;&lt;/XML&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;!--wewe--&amp;gt;&lt;FIELD&gt;12&lt;/FIELD&gt;&lt;FIELD2&gt;1234&lt;/FIELD2&gt;&lt;FIELD3&gt;1234&lt;/FIELD3&gt;gfgdfggsgsdf-sgsdgsdgreg-&lt;FIELD4&gt;3333&lt;/FIELD4&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
BREAK_ONLY_BEFORE =&amp;lt;xml&amp;gt;&lt;BR /&gt;
KV_MODE = xml&lt;BR /&gt;
TRANSFORMS-test1 = content&lt;BR /&gt;
transforms.conf&lt;/P&gt;

&lt;P&gt;[content]&lt;BR /&gt;
SOURCE_KEY=_raw&lt;BR /&gt;
REGEX=(.&lt;EM&gt;?)&amp;lt;body&amp;gt;.&lt;/EM&gt;?&amp;lt;/body&amp;gt;(.*)&lt;BR /&gt;
DEST_KEY=_raw&lt;BR /&gt;
FORMAT=$1$2&lt;/P&gt;

&lt;P&gt;it works for above xml but if the content in the  are more than few hundred K bytes, it will not work. Any suggestion to resolve this? thks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135243#M27829</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2020-09-28T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: filter data that are more than hundred K bytes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135244#M27830</link>
      <description>&lt;P&gt;I believe that your problem is not that the .conf files are wrong, but that your events are larger than the Splunk defaults.&lt;BR /&gt;
You can fix this by adding the following lines to your stanza in &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRUNCATE = 0
MAX_EVENTS = 10000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRUNCATE is the maximum number of bytes in an event. Setting it to 0 means "no limit." You might want to set it to an actual maximum size.&lt;BR /&gt;&lt;BR /&gt;
MAX_EVENTS is the maximum number of lines in an event. The default is 256. I arbitrarily set it to 10,000 in the example.&lt;/P&gt;

&lt;P&gt;Also, see the answer to your original question:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/132023/propsconf-and-transformsconf-does-not-work"&gt;http://answers.splunk.com/answers/132023/propsconf-and-transformsconf-does-not-work&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135244#M27830</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-04-17T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: filter data that are more than hundred K bytes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135245#M27831</link>
      <description>&lt;P&gt;Something else to keep in mind is the &lt;CODE&gt;LOOKAHEAD&lt;/CODE&gt; value in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;.  If you expect your regex to go more than 4K into the event, then the value will need to be increased. (&lt;CODE&gt;LOOKAHEAD&lt;/CODE&gt; defaults to 4096 bytes.)  Also be careful with the performance implications of changing &lt;CODE&gt;LOOKAHEAD&lt;/CODE&gt; or the &lt;CODE&gt;TRUCATE&lt;/CODE&gt;/&lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; settings.  It's fine to test with arbitrarily high numbers, but sometimes "tests" leak into production when they can kill performance. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135245#M27831</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2014-04-17T18:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: filter data that are more than hundred K bytes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135246#M27832</link>
      <description>&lt;P&gt;it does not work, any other alternative? thks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 02:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-that-are-more-than-hundred-K-bytes/m-p/135246#M27832</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-18T02:09:27Z</dc:date>
    </item>
  </channel>
</rss>

