<?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: How to Disable http response gzip encoding in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64397#M2135</link>
    <description>&lt;P&gt;This appears to work for me under Splunk 4.1.7 on Linux:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ cat /opt/splunk/etc/system/local/web.conf 
[settings]
mgmtHostPort = localhost:8099
enable_gzip = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I checked with wireshark and do not see gzip compression.  You should check your config with btool as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd btool --debug web list | egrep -i "\[.*\]|gzip"
system     [default]
system     [settings]
system     enable_gzip = False
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Mar 2011 03:48:42 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-03-22T03:48:42Z</dc:date>
    <item>
      <title>How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64396#M2134</link>
      <description>&lt;P&gt;I have a problem regarding gzip encoding. Any help is very appreciated.&lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;flash timelines&lt;/STRONG&gt; and many &lt;STRONG&gt;charts&lt;/STRONG&gt; does not work behind a proxy. The problem occurs when the http response is &lt;STRONG&gt;encoded with gzip&lt;/STRONG&gt;, so the proxy can't rewrite the urls.&lt;/P&gt;

&lt;P&gt;I have edited [web.conf] as follows:
enable_gzip = False. Also, I put the &lt;STRONG&gt;Accept-Encoding: identity&lt;/STRONG&gt; in the request header&lt;/P&gt;

&lt;P&gt;Still no luck. No matter what I do, the response is gzip compressed (&lt;STRONG&gt;bug?&lt;/STRONG&gt;)&lt;/P&gt;

&lt;P&gt;...
Example request and response fetching a timeline:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET /en-US/app/search/flashtimeline?auto_pause=true&amp;amp;q=search HTTP/1.1

Host: localhost

Connection: keep-alive

Referer: &lt;A href="http://localhost/SplunkProxy/en-US/app/search/dashboard" target="test_blank"&gt;http://localhost/SplunkProxy/en-US/app/search/dashboard&lt;/A&gt;

Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13

Accept-Encoding: identity

Accept-Language: sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Cookie: session_id_8000=e39121e162ef0cfc2d05e6c432b68307f918a0ed



HTTP/1.1 200 OK

Content-Type: text/html;charset=utf-8

Content-Encoding: gzip

Vary: Accept-Encoding

Server: Microsoft-IIS/7.5

Set-Cookie: session_id_8000=e39121e162ef0cfc2d05e6c432b68307f918a0ed; expires=Tue, 22 Mar 2011 14:35:00 GMT; Path=/

X-Powered-By: ASP.NET

Date: Mon, 21 Mar 2011 14:35:00 GMT

Content-Length: 15437



.............`.I.%&amp;amp;/m.{.J.J..t...`.$. ...... etc etc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2011 03:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64396#M2134</guid>
      <dc:creator>magnuspenilsson</dc:creator>
      <dc:date>2011-03-22T03:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64397#M2135</link>
      <description>&lt;P&gt;This appears to work for me under Splunk 4.1.7 on Linux:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ cat /opt/splunk/etc/system/local/web.conf 
[settings]
mgmtHostPort = localhost:8099
enable_gzip = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I checked with wireshark and do not see gzip compression.  You should check your config with btool as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd btool --debug web list | egrep -i "\[.*\]|gzip"
system     [default]
system     [settings]
system     enable_gzip = False
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2011 03:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64397#M2135</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-03-22T03:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64398#M2136</link>
      <description>&lt;P&gt;I have the same config.&lt;/P&gt;

&lt;P&gt;Setting enable_gzip = True makes a lot of requests compressed, so it works as it is supposed to, excepts for timelines that is...&lt;/P&gt;

&lt;P&gt;I am also using Wireshark. Have you tried to capture the exact same request? Default "Search" App Dashboard -&amp;gt; Click on a sourcetype to get to the search view. Examine the request in my example (GET /en-US/app/search/flashtimeline?auto_pause=true&amp;amp;q=search HTTP/1.1). In my case, it is compressed.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 04:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64398#M2136</guid>
      <dc:creator>magnuspenilsson</dc:creator>
      <dc:date>2011-03-22T04:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64399#M2137</link>
      <description>&lt;P&gt;Gzipping in HTTP occurs &lt;EM&gt;after&lt;/EM&gt; the headers and should not affect any downstream servers.&lt;/P&gt;

&lt;P&gt;The problem you are probably running into is the root endpoint setting. Looking at your request dump, you probably need to set the following in your &lt;CODE&gt;web.conf&lt;/CODE&gt; file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
root_endpoint = /SplunkProxy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This causes Splunkweb to forward all requests (whether proxied or direct) to this new sub-endpoint. Additional info is available in a &lt;A href="http://answers.splunk.com/questions/5465/how-to-access-splunk-web-interface-behind-nginx" rel="nofollow"&gt;previous post about proxying&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Background info on how HTTP gzipping works can be found &lt;A href="http://www.http-compression.com/" rel="nofollow"&gt;in this tutorial&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 04:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64399#M2137</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2011-03-22T04:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64400#M2138</link>
      <description>&lt;P&gt;Yes, gzipping occurs at the content only. IIS proxy (using ARR 2 &amp;amp; URL Rewrite 2) demands that the response is not gzipped for proxy reverse rewrite to work... Proxy is hosted on IIS at &lt;A href="http://localhost/SplunkProxy/" target="_blank"&gt;http://localhost/SplunkProxy/&lt;/A&gt;. Splunk is hosted at standard &lt;A href="http://localhost:8000/" target="_blank"&gt;http://localhost:8000/&lt;/A&gt;. Then root_endpoint should be "/", right?. The GET parameter before proxy rewriting is "/en-US/app/search/flashtimeline?auto_pause=true&amp;amp;q=search HTTP/1.1". After it is "http:/localhost:8000/en-US/app/search/flashtimeline?auto_pause=true&amp;amp;q=search HTTP/1.1".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64400#M2138</guid>
      <dc:creator>magnuspenilsson</dc:creator>
      <dc:date>2020-09-28T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64401#M2139</link>
      <description>&lt;P&gt;Solved. 
Johnvey, you are absolutely right about the root_endpoint. It should be set to "/SplunkProxy" if the proxy is located on "proxydomain/SplunkProxy/". &lt;/P&gt;

&lt;P&gt;The reason for all my problems was that the &lt;STRONG&gt;IIS proxy using ARR and URL Rewrite&lt;/STRONG&gt; must be configured at the &lt;STRONG&gt;proxy website root&lt;/STRONG&gt;. I had an "Application" at localhost/SplunkTest where I also put the proxy rules which caused strange rewriting behaviors.&lt;/P&gt;

&lt;P&gt;Thank you both of you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 06:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64401#M2139</guid>
      <dc:creator>magnuspenilsson</dc:creator>
      <dc:date>2011-03-22T06:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable http response gzip encoding</title>
      <link>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64402#M2140</link>
      <description>&lt;P&gt;Make sure to mark Johnvey's answer as correct by clicking the green checkbox next to it.  That will cause the answers system to treat this as 'answered' and help future users reading answers posts - not to mention hand out some rep points &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2011 08:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-Disable-http-response-gzip-encoding/m-p/64402#M2140</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-03-23T08:33:45Z</dc:date>
    </item>
  </channel>
</rss>

