<?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: Two multivalue fields needed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330956#M98509</link>
    <description>&lt;P&gt;Brilliant! I was trying to get two multivalue fields extracted but no reason they can't be in one field in this case. Great idea! Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 19:15:06 GMT</pubDate>
    <dc:creator>wkassel</dc:creator>
    <dc:date>2017-07-26T19:15:06Z</dc:date>
    <item>
      <title>Two multivalue fields needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330954#M98507</link>
      <description>&lt;P&gt;Hi - I need to extract two multivalue fields from each event. Let's say the strings are "AAA-" and "BBB-". Each string is followed by a number after the hyphen. An event will have one or both of these strings and possibly multiples of each, hence multivalue. I can pipe the search to a rex command (e.g. &lt;CODE&gt;|rex max_match=0 "(?AAA-[0-9]+)"&lt;/CODE&gt;) which gets me the multivalues of AAA- for each event but how can I include BBB- if it exists in the event as well, or vice versa ? &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
W&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 18:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330954#M98507</guid>
      <dc:creator>wkassel</dc:creator>
      <dc:date>2017-07-26T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Two multivalue fields needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330955#M98508</link>
      <description>&lt;P&gt;If you want use rex to match either of two strings, use a '|'.  This string should match either "AAA-1" or "BBB-1".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0  "(?&amp;lt;foo&amp;gt;(?:AAA|BBB)-[0-9]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use regex101.com to test possible regex strings against sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 18:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330955#M98508</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-26T18:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Two multivalue fields needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330956#M98509</link>
      <description>&lt;P&gt;Brilliant! I was trying to get two multivalue fields extracted but no reason they can't be in one field in this case. Great idea! Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 19:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330956#M98509</guid>
      <dc:creator>wkassel</dc:creator>
      <dc:date>2017-07-26T19:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Two multivalue fields needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330957#M98510</link>
      <description>&lt;P&gt;If your problem is solved, please accept the answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 11:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-multivalue-fields-needed/m-p/330957#M98510</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-27T11:31:22Z</dc:date>
    </item>
  </channel>
</rss>

