<?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: Extract multiple values when field is in the same log twice in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290045#M160310</link>
    <description>&lt;P&gt;Thanks, this worked perfectly!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2017 18:53:37 GMT</pubDate>
    <dc:creator>bcarr12</dc:creator>
    <dc:date>2017-07-05T18:53:37Z</dc:date>
    <item>
      <title>Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290042#M160307</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am working with a log that can sometimes have the same field in one log entry more than one time, but with multiple values.&lt;/P&gt;

&lt;P&gt;Examples:&lt;/P&gt;

&lt;P&gt;Ex 1:&lt;BR /&gt;
100=A&lt;/P&gt;

&lt;P&gt;Ex 2:&lt;BR /&gt;
100=A 100=B 100=C&lt;/P&gt;

&lt;P&gt;Ex 3:&lt;BR /&gt;
100=D&lt;/P&gt;

&lt;P&gt;Ex 4:&lt;BR /&gt;
100=A 100=D&lt;/P&gt;

&lt;P&gt;As I've seen discussed before, Splunk only seems to pull the first value out whenever the field is repeated.  What would be the best way to tell Splunk at searchtime that I want to pull all "100" values from the log and not just the first one?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290042#M160307</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2017-07-05T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290043#M160308</link>
      <description>&lt;P&gt;Try this - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "100=(?&amp;lt;my100&amp;gt;\w+)" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290043#M160308</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-05T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290044#M160309</link>
      <description>&lt;P&gt;If you just want to get the values in the same field as a multivalve field, then this type search should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="100=A 100=B 100=C" | rex field=_raw max_match=10 "100=(?P&amp;lt;field100&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290044#M160309</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-07-05T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290045#M160310</link>
      <description>&lt;P&gt;Thanks, this worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290045#M160310</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2017-07-05T18:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290046#M160311</link>
      <description>&lt;P&gt;Thanks for the suggestion!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290046#M160311</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2017-07-05T18:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple values when field is in the same log twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290047#M160312</link>
      <description>&lt;P&gt;Saved my life, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 18:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-values-when-field-is-in-the-same-log-twice/m-p/290047#M160312</guid>
      <dc:creator>xlash911</dc:creator>
      <dc:date>2019-12-19T18:44:21Z</dc:date>
    </item>
  </channel>
</rss>

