<?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 extract fields at search-time from a multivalue query string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155098#M43631</link>
    <description>&lt;P&gt;I did try max_match=0 but it didn't work for me.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2014 21:39:07 GMT</pubDate>
    <dc:creator>bkchung</dc:creator>
    <dc:date>2014-10-08T21:39:07Z</dc:date>
    <item>
      <title>How to extract fields at search-time from a multivalue query string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155096#M43629</link>
      <description>&lt;P&gt;Using sourcetype="localapache", extracting fields from the following event only recognizes somevalues but not somevalues2:&lt;/P&gt;

&lt;P&gt;::1 - - 2014-10-03 16:10:27.444 Pacific Daylight Time 80 "GET /blah?wp={somevalues}&amp;amp;wp={somevalues2}&amp;amp;more={someother} HTTP/1.1" "-" 204 - "-" 1000&lt;/P&gt;

&lt;P&gt;I'm doing the following:&lt;BR /&gt;
sourcetype="localapache" source=&lt;EM&gt;access&lt;/EM&gt; "GET /blah" | fields + wp | rex fields = wp "{...(?&amp;lt;something&amp;gt;...}" | table wp, something&lt;/P&gt;

&lt;P&gt;Both the names of the pair is "wp". Is there any workaround for this?&lt;/P&gt;

&lt;P&gt;(Edited some formatting problems with amp,gt,lt, etc.)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 23:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155096#M43629</guid>
      <dc:creator>bkchung</dc:creator>
      <dc:date>2014-10-07T23:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at search-time from a multivalue query string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155097#M43630</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="localapache" source=access&amp;nbsp;"GET /blah"  | rex field=wp max_match=0 "wp=(?&amp;lt;something&amp;gt;\w+)" | table something
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Oct 2014 01:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155097#M43630</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-08T01:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at search-time from a multivalue query string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155098#M43631</link>
      <description>&lt;P&gt;I did try max_match=0 but it didn't work for me.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 21:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155098#M43631</guid>
      <dc:creator>bkchung</dc:creator>
      <dc:date>2014-10-08T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at search-time from a multivalue query string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155099#M43632</link>
      <description>&lt;P&gt;Remove field=wp from above and try again.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 21:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155099#M43632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-08T21:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at search-time from a multivalue query string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155100#M43633</link>
      <description>&lt;P&gt;Got your point. Yes, "wp" will be "somevalues" assuming that "something" is "\w+". But this, I would need to rewrite the regex to parse the query strings case by case rather than rely on the existing auto field extraction to treat multivalue cases which is useful if you don't know the fields and presumed values. I was thinking there might be a workaround to do that with "fields + wp" (also for performance).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 22:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-at-search-time-from-a-multivalue-query/m-p/155100#M43633</guid>
      <dc:creator>bkchung</dc:creator>
      <dc:date>2014-10-08T22:33:41Z</dc:date>
    </item>
  </channel>
</rss>

