<?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: URL Decoding in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/532380#M150392</link>
    <description>&lt;P&gt;I used your example, and it worked for me. Did you try this way?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval ua = "Mozilla%2f5.0%20(X11%3b%20Linux%20x86_64)%20AppleWebKit%2f537.36%20(KHTML,%20like%20Gecko)%20Chrome%2f70.0.3538.77%20Safari%2f537.36"
| eval uadecoded = urldecode(ua)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafamss_0-1607455524054.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12219i7C8D1069DE1E41BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafamss_0-1607455524054.png" alt="rafamss_0-1607455524054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 19:26:16 GMT</pubDate>
    <dc:creator>rafamss</dc:creator>
    <dc:date>2020-12-08T19:26:16Z</dc:date>
    <item>
      <title>URL Decoding- How to resolve error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471581#M132658</link>
      <description>&lt;P&gt;i tried all splunk answers and doesn't seems like working for me.&lt;/P&gt;
&lt;P&gt;i have this&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;search | rex mode=sed field=message.UA "s/%2f///g" | table message.UA

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;sample message.UA&lt;BR /&gt;Mozilla%2f5.0%20(X11%3b%20Linux%20x86_64)%20AppleWebKit%2f537.36%20(KHTML,%20like%20Gecko)%20Chrome%2f70.0.3538.77%20Safari%2f537.36&lt;/P&gt;
&lt;P&gt;i got this error after ran the search above.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error in 'rex' command: Failed to initialize sed. Invalid option string: /g&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I tried urldecode function, doesn't work, and also tried almost every solutions from splunk answer, i just could not decode the encoded UA field. please help.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471581#M132658</guid>
      <dc:creator>yonphang</dc:creator>
      <dc:date>2023-06-30T15:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: URL Decoding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471582#M132659</link>
      <description>&lt;P&gt;@yonphang ,&lt;/P&gt;

&lt;P&gt;Try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |rex mode=sed field=url "s/%2f/\//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2019 05:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471582#M132659</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-10-30T05:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: URL Decoding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471583#M132660</link>
      <description>&lt;P&gt;yes that was intentional, i want to find %2f and replace into /&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 05:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471583#M132660</guid>
      <dc:creator>yonphang</dc:creator>
      <dc:date>2019-10-30T05:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: URL Decoding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471584#M132661</link>
      <description>&lt;P&gt;Ok updated the answer &lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 05:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/471584#M132661</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-10-30T05:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: URL Decoding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/532380#M150392</link>
      <description>&lt;P&gt;I used your example, and it worked for me. Did you try this way?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval ua = "Mozilla%2f5.0%20(X11%3b%20Linux%20x86_64)%20AppleWebKit%2f537.36%20(KHTML,%20like%20Gecko)%20Chrome%2f70.0.3538.77%20Safari%2f537.36"
| eval uadecoded = urldecode(ua)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafamss_0-1607455524054.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12219i7C8D1069DE1E41BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafamss_0-1607455524054.png" alt="rafamss_0-1607455524054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 19:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/532380#M150392</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2020-12-08T19:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: URL Decoding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/648651#M224395</link>
      <description>&lt;P&gt;How about eval's urldecode?&lt;BR /&gt;&lt;BR /&gt;| eval decoded=urldecode(yourEncodedField)&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;| eval decoded=urldecode("yourEncodedString")&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/TextFunctions#urldecode.28.26lt.3Burl.26gt.3B.29" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/TextFunctions#urldecode.28.26lt.3Burl.26gt.3B.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 13:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/URL-Decoding-How-to-resolve-error/m-p/648651#M224395</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2023-06-29T13:12:11Z</dc:date>
    </item>
  </channel>
</rss>

