<?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: Create One Field Value from two indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-One-Field-Value-from-two-indexes/m-p/317907#M95111</link>
    <description>&lt;P&gt;Try this: &lt;CODE&gt;index =A OR index =B NOT source = 433 | eval Email=coalesce(EmailA,EmailB) | stats count by Email&lt;/CODE&gt;&lt;BR /&gt;
Field values are not case-sensitive in Splunk, but if you want them lower case, you can wrap the coalesce in a lower() function.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 17:15:48 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2017-09-05T17:15:48Z</dc:date>
    <item>
      <title>Create One Field Value from two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-One-Field-Value-from-two-indexes/m-p/317906#M95110</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have index=A with values from January-April with the field value called EmailA. I have another index with values from May-June with a field value called EmailB. I need to look at the most frequent Emails from January to June. This is the search I am using but it is not combining the emails correctly- the field Email is pulling only from Index=A since I renamed that one last. An email could be used in January and June and I need to have the total count across both indexes. &lt;/P&gt;

&lt;P&gt;index =A OR index =B NOT source = &lt;EM&gt;433&lt;/EM&gt; | eval EmailA=lower(EmailA)| eval EmailB =lower(EmailB) | rename EmailB as Email | rename EmailA as Email | stats count by Email&lt;/P&gt;

&lt;P&gt;And I am running this search with the time picker set from January to June. Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-One-Field-Value-from-two-indexes/m-p/317906#M95110</guid>
      <dc:creator>katzr</dc:creator>
      <dc:date>2017-09-05T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create One Field Value from two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-One-Field-Value-from-two-indexes/m-p/317907#M95111</link>
      <description>&lt;P&gt;Try this: &lt;CODE&gt;index =A OR index =B NOT source = 433 | eval Email=coalesce(EmailA,EmailB) | stats count by Email&lt;/CODE&gt;&lt;BR /&gt;
Field values are not case-sensitive in Splunk, but if you want them lower case, you can wrap the coalesce in a lower() function.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-One-Field-Value-from-two-indexes/m-p/317907#M95111</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-09-05T17:15:48Z</dc:date>
    </item>
  </channel>
</rss>

