<?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 How to extract all unique values from a multivalue field in one event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144558#M40242</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to extract field values that are distinct in one event. I managed to extract all the field values in the event, but I don't want those that repeat themselves.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex field=_raw "El color de la casa es (?&amp;lt; color_casa &amp;gt; [a-z]{1,10})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Apr 2015 17:57:22 GMT</pubDate>
    <dc:creator>edrivera3</dc:creator>
    <dc:date>2015-04-15T17:57:22Z</dc:date>
    <item>
      <title>How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144558#M40242</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to extract field values that are distinct in one event. I managed to extract all the field values in the event, but I don't want those that repeat themselves.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex field=_raw "El color de la casa es (?&amp;lt; color_casa &amp;gt; [a-z]{1,10})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2015 17:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144558#M40242</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-15T17:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144559#M40243</link>
      <description>&lt;P&gt;Looking at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/CommonEvalFunctions"&gt;functions for eval&lt;/A&gt;, I would guess that&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    ... | rex field=_raw "El color de la casa es (?&amp;lt; color_casa &amp;gt; [a-z]{1,10})" max_match=0 | eval color_casa=mvdedup(color_casa)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should do the trick. If not that then: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    ... | rex field=_raw "El color de la casa es (?&amp;lt; color_casa &amp;gt; [a-z]{1,10})" max_match=0 | eval color_casa=mvdedup(mvsort(color_casa))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2015 18:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144559#M40243</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-04-15T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144560#M40244</link>
      <description>&lt;P&gt;Hi edrivera3,&lt;/P&gt;

&lt;P&gt;Try with &lt;STRONG&gt;mvindex&lt;/STRONG&gt; function, this will retrieve all values field like follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...| rex field=_raw "El color de la casa es (?&amp;lt; color_casa &amp;gt; [a-z]{1,10})" max_match=0 |eval color1=mvindex( color_casa,0) |eval color2=mvindex( color_casa,1) |eval color3=mvindex( color_casa,2) |... |table color1 color2 color3 ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2015 18:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144560#M40244</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-04-15T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144561#M40245</link>
      <description>&lt;P&gt;Do you know how I could do the same but with the configuration file? (No inline)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 22:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144561#M40245</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-15T22:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144562#M40246</link>
      <description>&lt;P&gt;I have more than thirty values in each event and the amount of values is different for each event. Thanks anyway  for your answer. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 14:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144562#M40246</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-04-16T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all unique values from a multivalue field in one event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144563#M40247</link>
      <description>&lt;P&gt;Assuming you're using field extraction to create the multivalued field, you may be able to use a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/definecalcfields#Create_a_calculated_field_by_editing_props.conf"&gt;calculated field&lt;/A&gt; to tweak it's value, but it's something you'd need to play with to know for certain.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 19:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-all-unique-values-from-a-multivalue-field-in-one/m-p/144563#M40247</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-04-16T19:14:47Z</dc:date>
    </item>
  </channel>
</rss>

