<?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: Joining searches with multivaluate fields turn them into single valuate field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28558#M5663</link>
    <description>&lt;P&gt;@guilhem&lt;/P&gt;

&lt;P&gt;can you post your solution? I am facing the same problem.&lt;/P&gt;

&lt;P&gt;I really appreciate your reply&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2013 15:44:19 GMT</pubDate>
    <dc:creator>0waste_splunk</dc:creator>
    <dc:date>2013-08-21T15:44:19Z</dc:date>
    <item>
      <title>Joining searches with multivaluate fields turn them into single valuate field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28555#M5660</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I am having a problem with this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myIndex
| join FIELD1 max=0 [search index=myOtherIndex | stats values(FIELD2) as FIELD2 by FIELD1]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I look a the result of the query, the FIELD2 is not multivaluate, it is composed of a single line with space between the values, instead of a multivalued field.&lt;/P&gt;

&lt;P&gt;If I run the search &lt;CODE&gt;index=myOtherIndex | stats values(FIELD2) as FIELD2 by FIELD1&lt;/CODE&gt; (without the join), I get the correct result, which is a multivaluate FIELD2.&lt;/P&gt;

&lt;P&gt;It seems like the join command is somewhat interfering with the properties of the fields?&lt;/P&gt;

&lt;P&gt;Does anyone have a clue on what's going on?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 13:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28555#M5660</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2013-02-12T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Joining searches with multivaluate fields turn them into single valuate field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28556#M5661</link>
      <description>&lt;P&gt;Try this query it might work fine for you case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=myIndex) OR
(index=myOtherIndex)
| stats 
  first(_time) as _time
  values(FIELD2) as FIELD2
  dc(sourcetype) as dc by FIELD1|search dc=2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2013 14:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28556#M5661</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-02-12T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining searches with multivaluate fields turn them into single valuate field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28557#M5662</link>
      <description>&lt;P&gt;Thanks for the tip, I have finally done it in another way.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28557#M5662</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2013-03-25T13:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Joining searches with multivaluate fields turn them into single valuate field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28558#M5663</link>
      <description>&lt;P&gt;@guilhem&lt;/P&gt;

&lt;P&gt;can you post your solution? I am facing the same problem.&lt;/P&gt;

&lt;P&gt;I really appreciate your reply&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 15:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28558#M5663</guid>
      <dc:creator>0waste_splunk</dc:creator>
      <dc:date>2013-08-21T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Joining searches with multivaluate fields turn them into single valuate field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28559#M5664</link>
      <description>&lt;P&gt;I can't remember where this search is, but I am now using this solution:&lt;/P&gt;

&lt;P&gt;index=myIndex&lt;BR /&gt;
| join FIELD1 max=0 [search index=myOtherIndex | stats values(FIELD2) as FIELD2 by FIELD1 ]&lt;BR /&gt;
| eval FIELD2 = split(FIELD2, " ") &lt;/P&gt;

&lt;P&gt;because split creates a multivalued field by splitting FIELD2 using the given delimiter (here it is the space character)&lt;/P&gt;

&lt;P&gt;It is far from efficient but it works. I am sure it is possible to update it to a more efficient version thow&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 08:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-searches-with-multivaluate-fields-turn-them-into-single/m-p/28559#M5664</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2013-09-02T08:40:09Z</dc:date>
    </item>
  </channel>
</rss>

