<?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: Extracting multiple values for single field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/527846#M149015</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Log="Accept-Encoding: gzip,deflate\n&amp;gt;&amp;gt;"
| rex field=Log max_match=0 "(?:Accept-Encoding: )?(?&amp;lt;encoder&amp;gt;\w+)(,|\\\n&amp;gt;&amp;gt;)?"
| table Log encoder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 05:57:19 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-11-04T05:57:19Z</dc:date>
    <item>
      <title>Extracting multiple values for single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/527836#M149012</link>
      <description>&lt;P&gt;I'm trying to extract multiple values for a single field. I've got the beginnings of the regex sorted to extract it, but I don't know how to separate the values. For below rather than have gzip,deflate as a single value I'd like gzip and deflate as separate values. Does anyone have any advice?&lt;/P&gt;&lt;P&gt;Regex: Accept-Encoding: (?P&amp;lt;encoder&amp;gt;\w+.*?)\\n&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Log: &lt;SPAN&gt;Accept-Encoding: &lt;/SPAN&gt;&lt;SPAN class="highlighted-match highlighted-cat1"&gt;gzip,deflate&lt;/SPAN&gt;&lt;SPAN&gt;\n&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Results: (attached image)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 02:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/527836#M149012</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2020-11-04T02:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values for single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/527846#M149015</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Log="Accept-Encoding: gzip,deflate\n&amp;gt;&amp;gt;"
| rex field=Log max_match=0 "(?:Accept-Encoding: )?(?&amp;lt;encoder&amp;gt;\w+)(,|\\\n&amp;gt;&amp;gt;)?"
| table Log encoder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 05:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/527846#M149015</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-11-04T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values for single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/528454#M149227</link>
      <description>&lt;P&gt;Is there a way to do this as an field extraction? As in something I can do the regex for once and it be permanently present or would I only be able to do this extraction at search time?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2020 22:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/528454#M149227</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2020-11-08T22:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting multiple values for single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/528458#M149229</link>
      <description>&lt;P&gt;You can do this as a field extraction. Just create a new field extraction through the UI, or via the configuration files&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Configureinlineextractions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Configureinlineextractions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not totally sure if that regex will extract the encoder field as multiple when done through the field extraction process, but it _should_ be possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2020 23:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-multiple-values-for-single-field/m-p/528458#M149229</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-11-08T23:15:50Z</dc:date>
    </item>
  </channel>
</rss>

