<?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 Key value pair... in a key value pair in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Key-value-pair-in-a-key-value-pair/m-p/528201#M89056</link>
    <description>&lt;P&gt;Assume I have this key value pair in splunk&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;uri_query=“client=safari&amp;amp;source=hp&amp;amp;ei=5k-kX56GMdGpytMPu7asyA0&amp;amp;q=random+search&amp;amp;oq=random+search&amp;amp;gs_lcp=ChFtb2JpbGUtZ3dzLXdpei1ocBADMgUIABDJAzICCAAyAggAMgIIADICCAAyAggAMgIIADICCAA6CAgAELEDEIMBOgIILjoICC4QsQMQgwE6BQguELEDOgUIABCxAzoICAAQsQMQyQM6BAgAEApQ1xNY6yNg-iVoAHAAeACAAUKIAY8GkgECMTOYAQCgAQGwAQA&amp;amp;sclient=mobile-gws-wiz-hp”&lt;/LI-CODE&gt;
&lt;P&gt;the uri parameters could be in any order. If I want to search for a specific value I’m forced to do something like&lt;/P&gt;
&lt;P&gt;| search uri_query=“*sclient=mobile-gws-wiz-hp*”&lt;/P&gt;
&lt;P&gt;this is very slow for obvious reasons&lt;/P&gt;
&lt;P&gt;if I run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| search sclient=mobile-gws-wiz-hp&lt;/P&gt;
&lt;P&gt;This is very fast, but includes results where this value might be in the refer field rather than the uri_query field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a better way to do these needle in a haystack searches?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 19:34:32 GMT</pubDate>
    <dc:creator>adepasquale</dc:creator>
    <dc:date>2020-11-05T19:34:32Z</dc:date>
    <item>
      <title>Key value pair... in a key value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Key-value-pair-in-a-key-value-pair/m-p/528201#M89056</link>
      <description>&lt;P&gt;Assume I have this key value pair in splunk&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;uri_query=“client=safari&amp;amp;source=hp&amp;amp;ei=5k-kX56GMdGpytMPu7asyA0&amp;amp;q=random+search&amp;amp;oq=random+search&amp;amp;gs_lcp=ChFtb2JpbGUtZ3dzLXdpei1ocBADMgUIABDJAzICCAAyAggAMgIIADICCAAyAggAMgIIADICCAA6CAgAELEDEIMBOgIILjoICC4QsQMQgwE6BQguELEDOgUIABCxAzoICAAQsQMQyQM6BAgAEApQ1xNY6yNg-iVoAHAAeACAAUKIAY8GkgECMTOYAQCgAQGwAQA&amp;amp;sclient=mobile-gws-wiz-hp”&lt;/LI-CODE&gt;
&lt;P&gt;the uri parameters could be in any order. If I want to search for a specific value I’m forced to do something like&lt;/P&gt;
&lt;P&gt;| search uri_query=“*sclient=mobile-gws-wiz-hp*”&lt;/P&gt;
&lt;P&gt;this is very slow for obvious reasons&lt;/P&gt;
&lt;P&gt;if I run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| search sclient=mobile-gws-wiz-hp&lt;/P&gt;
&lt;P&gt;This is very fast, but includes results where this value might be in the refer field rather than the uri_query field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a better way to do these needle in a haystack searches?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 19:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Key-value-pair-in-a-key-value-pair/m-p/528201#M89056</guid>
      <dc:creator>adepasquale</dc:creator>
      <dc:date>2020-11-05T19:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Key value pair... in a key value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Key-value-pair-in-a-key-value-pair/m-p/528219#M89058</link>
      <description>&lt;P&gt;Here's a kludgy, untested way to parse the uri_query field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval oldraw=_raw
| eval _raw=uri_query
| extract pairdelim="&amp;amp;" kvdelim="="
| eval _raw=oldraw
| search sclient="mobile-gws-wiz-hp"
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 21:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Key-value-pair-in-a-key-value-pair/m-p/528219#M89058</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-05T21:07:13Z</dc:date>
    </item>
  </channel>
</rss>

