<?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: When I clicked open in search, I got Request-URI Too Long in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/694811#M236300</link>
    <description>&lt;P&gt;A search can be longer than the URI allows for opening in a new tab, which causes the &lt;STRONG&gt;414 Request-URI Too Long&lt;/STRONG&gt; error.&amp;nbsp; There are multiple workarounds:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Refactor the search and/or move long portions of the query into an &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.0/SearchReference/Inputlookup" target="_self"&gt;inputlookup command&lt;/A&gt; or &lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Knowledge/Usesearchmacros" target="_self"&gt;search macro&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Edit the URL to remove the query and only use the SID (as long as the search ID hasn't expired)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For the second option, you can make a "Bookmarklet" that removes all of the URL parameters except the SID:&lt;/P&gt;&lt;PRE&gt; javascript&amp;amp;colon; window.location.href = window.location.href.replace(/\?.*?(\bsid=[^&amp;amp;]+).*/, '?$1')&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Note: Khoros is breaking the bookmarklet; replace &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;amp;colon;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; with &lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you click on that bookmarklet when you get the error, it will open the search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 07:54:54 GMT</pubDate>
    <dc:creator>malvidin</dc:creator>
    <dc:date>2024-08-05T07:54:54Z</dc:date>
    <item>
      <title>When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667439#M228973</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;When I clicked open in search, I got the following message:&lt;BR /&gt;&lt;STRONG&gt;Request-URI Too Long&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;The requested URL's length exceeds the capacity limit for this server.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I don't get the message if I copy and paste the search manually&lt;BR /&gt;&lt;BR /&gt;Why does Splunk send searches via GET request?&lt;BR /&gt;How do I fix this without an admin role?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667439#M228973</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-11-06T02:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667477#M228975</link>
      <description>&lt;P&gt;Could this help maybe?&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Why-are-large-Splunk-searches-causing-quot-Request-URI-too-long/m-p/437368" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Why-are-large-Splunk-searches-causing-quot-Request-URI-too-long/m-p/437368&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 10:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667477#M228975</guid>
      <dc:creator>FelixLeh</dc:creator>
      <dc:date>2023-11-06T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667516#M228990</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks for your suggestion.&lt;BR /&gt;I already looked it up before I posted my question.&lt;BR /&gt;&lt;SPAN&gt;The previous post do not answer my questions and&amp;nbsp; &amp;nbsp;I don't have an admin role&lt;BR /&gt;1) Why does Splunk send searches via GET request?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) How do I fix this without an admin role?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 12:55:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/667516#M228990</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-11-06T12:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/694811#M236300</link>
      <description>&lt;P&gt;A search can be longer than the URI allows for opening in a new tab, which causes the &lt;STRONG&gt;414 Request-URI Too Long&lt;/STRONG&gt; error.&amp;nbsp; There are multiple workarounds:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Refactor the search and/or move long portions of the query into an &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.0/SearchReference/Inputlookup" target="_self"&gt;inputlookup command&lt;/A&gt; or &lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Knowledge/Usesearchmacros" target="_self"&gt;search macro&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Edit the URL to remove the query and only use the SID (as long as the search ID hasn't expired)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For the second option, you can make a "Bookmarklet" that removes all of the URL parameters except the SID:&lt;/P&gt;&lt;PRE&gt; javascript&amp;amp;colon; window.location.href = window.location.href.replace(/\?.*?(\bsid=[^&amp;amp;]+).*/, '?$1')&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Note: Khoros is breaking the bookmarklet; replace &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;amp;colon;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; with &lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you click on that bookmarklet when you get the error, it will open the search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 07:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/694811#M236300</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2024-08-05T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695362#M236455</link>
      <description>&lt;P&gt;&lt;BR /&gt;Can you give an examples for both options??&lt;BR /&gt;1) I am not sure what you meant by refactor and move long position into inputlookup command and search macro&lt;BR /&gt;2) not sure how to make "bookmarklet"&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 02:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695362#M236455</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-08-06T02:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695389#M236463</link>
      <description>&lt;P&gt;A Splunk URI query usually contains a few key/value pairs like these:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;earliest&lt;/STRONG&gt; &lt;/FONT&gt;- epoch time for how far back to search&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;latest&lt;/STRONG&gt; &lt;/FONT&gt;- epoch time for when to start search&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sid&lt;/STRONG&gt; &lt;/FONT&gt;- unique search ID&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;q&lt;/STRONG&gt; &lt;/FONT&gt;- Query string&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;display.events.fields&lt;/STRONG&gt;&lt;/FONT&gt; -&amp;nbsp; Selected Fields&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If the path and URL query is over ~4000 characters after URL encoding, it will cause that 414 error.&amp;nbsp;I have only had long query values for &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;q&lt;/FONT&gt;&lt;/STRONG&gt; and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;display.events.fields&lt;/STRONG&gt;&lt;/FONT&gt; cause the 414 error.&lt;/P&gt;&lt;P&gt;Splunk passes the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sid&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;in the URL so that the search doesn't need to be run again. All the search parameters are available on the server if you provide the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sid&lt;/FONT&gt;&lt;/STRONG&gt;, but if the search is deleted or expired it can fall back to the other URL parameters to re-run the search.&lt;/P&gt;&lt;P&gt;The solutions are to edit the search to make it shorter in the URL or to edit the URL afterwards to remove some of the long parameters.&lt;/P&gt;&lt;P&gt;Now lets discuss the options I mentioned earlier. These will assume the following search and selected fields. They are not long enough to cause the 414 error, but will work for illustrating the issue.&lt;/P&gt;&lt;P&gt;search (265 chars encoded):&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;index=test host=0.example.com OR host=1.example.com OR host=2.example.com OR host=3.example.com OR host=4.example.com OR host=5.example.com OR host=6.example.com OR host=7.example.com OR host=8.example.com OR host=9.example.com&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;fields:&lt;BR /&gt;&lt;FONT face="courier new, courier"&gt;host, src, src_ip, src_mac, dest, dest_ip, dest_mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1. Refactor the Search&lt;/P&gt;&lt;P&gt;We can make this search string smaller by using the IN statement, a lookup, or a macro.&lt;/P&gt;&lt;P&gt;The IN statement and lookup table makes sense if you have a list of values in a search, the macro makes sense if you pipe the output to multiple subsequent commands (multiple eval, stats, etc.).&lt;/P&gt;&lt;P&gt;1.a. IN statement (166 chars encoded)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;index=test host IN (0.example.com,1.example.com,2.example.com,3.example.com,4.example.com,5.example.com,6.example.com,7.example.com,8.example.com,9.example.com)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1.b. lookup table (77 chars encoded)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;index=test [inputlookup example_domains | return 1000 host]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1.c. Search macro (40 chars encoded)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;index=test `example_domain_search`&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2. Edit the URL&lt;/P&gt;&lt;P&gt;Here is an example path for the first query above&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/search?&lt;STRONG&gt;q&lt;/STRONG&gt;=search%20index%3Dtest%20host%3D0.example.com%20OR%20host%3D1.example.com%20OR%20host%3D2.example.com%20OR%20host%3D3.example.com%20OR%20host%3D4.example.com%20OR%20host%3D5.example.com%20OR%20host%3D6.example.com%20OR%20host%3D7.example.com%20OR%20host%3D8.example.com%20OR%20host%3D9.example.com&amp;amp;&lt;STRONG&gt;display.page.search.mode&lt;/STRONG&gt;=smart&amp;amp;&lt;STRONG&gt;dispatch.sample_ratio&lt;/STRONG&gt;=1&amp;amp;&lt;STRONG&gt;earliest&lt;/STRONG&gt;=-24h%40h&amp;amp;&lt;STRONG&gt;latest&lt;/STRONG&gt;=now&amp;amp;&lt;STRONG&gt;display.events.fields&lt;/STRONG&gt;=%5B"host"%2C"src"%2C"src_ip"%2C"src_mac"%2C"dest"%2C"dest_ip"%2C"dest_mac"%5D&amp;amp;&lt;STRONG&gt;sid&lt;/STRONG&gt;=1723000000.00000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2.a. Manually edit the URL (not recommended)&lt;/P&gt;&lt;P&gt;Go to the address bar and manually remove the longer query parameters&lt;/P&gt;&lt;P&gt;2.a.i:. Remove the display parameters and timeframe&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/search?&lt;STRONG&gt;q&lt;/STRONG&gt;=search%20index%3Dtest%20host%3D0.example.com%20OR%20host%3D1.example.com%20OR%20host%3D2.example.com%20OR%20host%3D3.example.com%20OR%20host%3D4.example.com%20OR%20host%3D5.example.com%20OR%20host%3D6.example.com%20OR%20host%3D7.example.com%20OR%20host%3D8.example.com%20OR%20host%3D9.example.com&amp;amp;&lt;STRONG&gt;sid&lt;/STRONG&gt;=1723000000.00000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2.a.ii:. Remove the display parameters&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/search?&lt;STRONG&gt;q&lt;/STRONG&gt;=search%20index%3Dtest%20host%3D0.example.com%20OR%20host%3D1.example.com%20OR%20host%3D2.example.com%20OR%20host%3D3.example.com%20OR%20host%3D4.example.com%20OR%20host%3D5.example.com%20OR%20host%3D6.example.com%20OR%20host%3D7.example.com%20OR%20host%3D8.example.com%20OR%20host%3D9.example.com&amp;amp;&lt;STRONG&gt;earliest&lt;/STRONG&gt;=-24h%40h&amp;amp;&lt;STRONG&gt;latest&lt;/STRONG&gt;=now&amp;amp;&lt;STRONG&gt;sid&lt;/STRONG&gt;=1723000000.00000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.a.iii. Leave only the search ID (sid)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/search?&lt;STRONG&gt;sid&lt;/STRONG&gt;=1723000000.00000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2.b. Edit the URL with a &lt;A href="https://en.wikipedia.org/wiki/Bookmarklet" target="_self"&gt;bookmarklet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the&amp;nbsp;bookmarklet shared earlier, you can use a regular expression to remove some of the parameters. You could remove all but the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sid&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;like I did, or you could remove only the&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;display.events.fields&lt;/FONT&gt;&lt;/STRONG&gt; if that is causing issues for you.&amp;nbsp; Any of the manual edits made above can be made with a regular expression. If you want a regular expression that provides more fields than the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sid&lt;/STRONG&gt;&lt;/FONT&gt;, you can use an regular expression tool like regex101 to assist in creating a different bookmarklet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malvidin_0-1722932359355.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32074iD15CEA8357DE7CA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malvidin_0-1722932359355.png" alt="malvidin_0-1722932359355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is probably possible to build a lexer bookmarklet that parses the search query and truncates it to fit within the server's ~4000 character limit, but that's probably a waste of time.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695389#M236463</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2024-08-06T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695485#M236488</link>
      <description>&lt;P&gt;I appreciate the explanation and example.&lt;BR /&gt;The search that I have is very long and doing a lot of calculation, so it's not that easy to do your suggestion&lt;BR /&gt;&lt;BR /&gt;I've been doing similar thing, but much simpler&lt;BR /&gt;I just decode the URL using URL decoder, then open a new search and paste the search.&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 03:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695485#M236488</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-08-07T03:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695517#M236497</link>
      <description>&lt;P&gt;Yes, you can copy the URL, decode the URL parameters, and paste it into a new search, but clicking on a bookmarklet is more convenient for me.&lt;/P&gt;&lt;P&gt;If decoding your query due to the 414 error is a common occurrence, you could also make a CyberChef recipe to help. I don't know how much work it would take to make a bookmarklet that would POST the AST to the server instead.&lt;/P&gt;&lt;P&gt;I understand that your search has a large number of calculations, but you can use a macro to make the URL shorter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;index=test example.com&lt;BR /&gt;|&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;`complex_calculations`&lt;BR /&gt;|&amp;nbsp;`get_geoip_data(src_ip)`&lt;BR /&gt;| `multiple_stats_commands`&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In that case, each macro can contain a very large number of commands. When possible, I create macros that are reusable, but that is not always appropriate. In particular, Splunk Enterprise Security content includes a separate filter macro for each Correlation Search so that false positives can be tuned out without editing the detection core logic.&lt;/P&gt;&lt;P&gt;Without access to your search query, it is difficult to know how to make the search smaller.&lt;/P&gt;&lt;P&gt;In a Windows browser, you can press Ctrl-Shift-E when writing your search to show the "Expanded Search String" with the content in all of the macros being shown.&lt;/P&gt;&lt;P&gt;These are a couple examples of how I've moved long parsing and calculation strings to macros:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;get_datamodel_desc(1)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malvidin_0-1723021288052.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32092i0E5EA0490C23DEA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malvidin_0-1723021288052.png" alt="malvidin_0-1723021288052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;entropy_digits_lowercase(1)&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; (the Decrypt2 app is better than this macro)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malvidin_1-1723021561714.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32093iFDEC2C79C931DA57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malvidin_1-1723021561714.png" alt="malvidin_1-1723021561714.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:16:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/695517#M236497</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2024-08-07T09:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/703007#M238321</link>
      <description>&lt;P&gt;I made a couple more bookmarklets to help:&lt;/P&gt;&lt;P&gt;1. SID Only: Strip all URL parameters except the SID to have the search parameters loaded from the saved job (only works if the SID is still saved)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;javascript&amp;amp;colon; window.location.href = window.location.href.replace(/\?.*?(\bsid=[^&amp;amp;]+).*/, '?$1');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Show Search: Show the search after the error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;javascript&amp;amp;colon; query_str = decodeURIComponent(window.location.href.replace(/.*?\bq=([^&amp;amp;]+).*/, '$1')); document.body.innerHTML += `&amp;lt;pre&amp;gt;${query_str}&amp;lt;/pre&amp;gt;`;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Strip off different parameters until it works. 1st click removes the display fields list, 2nd click collapses repeated spaces, and 3rd click truncates the query to 3500 characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;javascript&amp;amp;colon;(function(){if (location.href.indexOf('display.events.fields')&amp;gt;=0) {window.location.href = window.location.href.replace(/\b(display\.events\.fields=[^&amp;amp;]+)/, '');}else if (location.href.indexOf('%'+'0A')&amp;gt;=0) {window.location.href = window.location.href.replaceAll(/(%(20|0A))+/g, ' ');}else{window.location.href = window.location.href.replace(/(\bq=[^&amp;amp;]{100,3500})[^&amp;amp;]*(.*)/, '$1$2');}})();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again,&amp;nbsp; replace the "&amp;amp;colon;" in the blocks above with the colon character.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/703007#M238321</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2024-10-29T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: When I clicked open in search, I got Request-URI Too Long</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/746266#M241612</link>
      <description>&lt;P&gt;for anyone that would like to see this work better, please consider voting for my idea here to support long query urls:&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/EID-I-2569" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ideas.splunk.com/ideas/EID-I-2569&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to me, this is not uncommon at all.&amp;nbsp; it's a daily problem that I have to work around.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;(I'm aware of the current solutions and already use them.)&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 15:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-I-clicked-open-in-search-I-got-Request-URI-Too-Long/m-p/746266#M241612</guid>
      <dc:creator>msquicc</dc:creator>
      <dc:date>2025-05-15T15:13:44Z</dc:date>
    </item>
  </channel>
</rss>

