<?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: Common Field in Two Different Indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367251#M108331</link>
    <description>&lt;P&gt;Thanks this worked!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 12:20:28 GMT</pubDate>
    <dc:creator>ryanprayacn</dc:creator>
    <dc:date>2017-09-27T12:20:28Z</dc:date>
    <item>
      <title>Common Field in Two Different Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367249#M108329</link>
      <description>&lt;P&gt;I have two indexes that I can successfully join via stats.  However, both indexes have a common field named "STATUS".  I want to be able to separate the STATUS field into STATUS1 and STATUS2 before the join - so I can see both.  I have left out STATUS below but showing successful join SPL below:&lt;/P&gt;

&lt;P&gt;index=customertest OR index=valuetest | stats values(Spend) as spend values(Order) as order by Customer | fillnull value=NULL | mvexpand spend | sort Customer&lt;/P&gt;

&lt;P&gt;Any recommendations?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 02:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367249#M108329</guid>
      <dc:creator>ryanprayacn</dc:creator>
      <dc:date>2017-09-27T02:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Common Field in Two Different Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367250#M108330</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=customertest OR index=valuetest 
| eval Status1=case(index="customertest", Status)
| eval Status2=case(index="valuetest", Status)
| stats values(Spend) as spend values(Order) as order values(Status*) as Status* by Customer 
| fillnull value=NULL 
| mvexpand spend 
| sort Customer
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 03:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367250#M108330</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-27T03:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Common Field in Two Different Indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367251#M108331</link>
      <description>&lt;P&gt;Thanks this worked!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-Field-in-Two-Different-Indexes/m-p/367251#M108331</guid>
      <dc:creator>ryanprayacn</dc:creator>
      <dc:date>2017-09-27T12:20:28Z</dc:date>
    </item>
  </channel>
</rss>

