<?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: max_content_length error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20074#M2898</link>
    <description>&lt;P&gt;I saw that setting, but didn't realize it was new in 4.2.4. Do you know of a way to determine a reasonable size limit? Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2011 20:57:20 GMT</pubDate>
    <dc:creator>eugenekogan</dc:creator>
    <dc:date>2011-11-21T20:57:20Z</dc:date>
    <item>
      <title>max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20072#M2896</link>
      <description>&lt;P&gt;Does anyone know the cause of this error message, and how to solve/prevent it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Problem replicating config (bundle) to search peer 'servername:8089', error code '413' message from peer 'content exceeded max_content_length'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2011 18:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20072#M2896</guid>
      <dc:creator>eugenekogan</dc:creator>
      <dc:date>2011-11-21T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20073#M2897</link>
      <description>&lt;P&gt;In 4.2.4 there is a new attribute in the server.conf:&lt;BR /&gt;
Its default setting in server.conf is 800MB&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[httpServer]
# reject web accesses over 800MB in length
max_content_length = 838860800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One reason could be very large lookups where the search peers are no longer able to handle the replicated bundles as they hit the default max 838860800 bytes (eg. 800MB).&lt;/P&gt;

&lt;P&gt;Try to increase this setting on your search peers.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 20:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20073#M2897</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2011-11-21T20:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20074#M2898</link>
      <description>&lt;P&gt;I saw that setting, but didn't realize it was new in 4.2.4. Do you know of a way to determine a reasonable size limit? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 20:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20074#M2898</guid>
      <dc:creator>eugenekogan</dc:creator>
      <dc:date>2011-11-21T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20075#M2899</link>
      <description>&lt;P&gt;The search peer's splunkd.log should be examined for the error message regarding the request for the bundle. You can determine how large the bundle (in bytes) is expected at that point in time and the default size such as the example below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-21-2011 23:27:37.349 ERROR HTTPServer - client_ip=1.234.5.678 sent request for method="POST /services/receivers/bundle/prd_searchhead01 HTTP/1.0" with content_length=937628312 greater than max_content_length=838860800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;content_length&lt;/CODE&gt; can be used as an approximate guide to reset the &lt;CODE&gt;max_content_length&lt;/CODE&gt;.  Though the bigger question is why is the bundle so large and can it be managed better to reduce its overall size?  Are there excessively large lookup tables that can be trimmed? Are there &lt;CODE&gt;replicationWhitelist&lt;/CODE&gt; or &lt;CODE&gt;replicationBlacklist&lt;/CODE&gt; that can be defined to further reduce the bundle that needs to be replicated to all peers?&lt;/P&gt;

&lt;P&gt;For further details refer to:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Configuredistributedsearch#Limit_knowledge_bundle_size" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Configuredistributedsearch#Limit_knowledge_bundle_size&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Whatisdistributedsearch#What_search_heads_send_to_search_peers" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Whatisdistributedsearch#What_search_heads_send_to_search_peers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Deciding what is the reasonable maximum for the &lt;CODE&gt;max_content_length&lt;/CODE&gt; is going to be dependent on that environment and how much memory is available without impacting the overall system as well as how you manage the search head knowledge objects to be replicated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20075#M2899</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2020-09-28T10:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20076#M2900</link>
      <description>&lt;P&gt;Thanks a lot. Increasing the limit on the peers solved the issue for now. &lt;BR /&gt;
We will look into the other proposed solution to "replicationWhitelist or replicationBlacklist that can be defined to further reduce the bundle that needs to be replicated to all peers". Should this 'replicationWhitelist' change be done in the distsearch.conf file on the searchHead or the peers?&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 19:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20076#M2900</guid>
      <dc:creator>spolapragada</dc:creator>
      <dc:date>2013-12-27T19:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: max_content_length error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20077#M2901</link>
      <description>&lt;P&gt;Replication occurs from the Search Head to Peer.  So the replicationWhitelist or replicationBlackList are defined on the Search Head and its distsearch.conf.  Do refer to the suggested Splunk documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/max-content-length-error/m-p/20077#M2901</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2013-12-27T20:33:08Z</dc:date>
    </item>
  </channel>
</rss>

