<?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 combinig two search commands in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275168#M83007</link>
    <description>&lt;P&gt;I have 2 indexers which are having the same columns&lt;BR /&gt;
Index1:&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
A   5/1/1990    25&lt;BR /&gt;
B   7/1/2010    6&lt;/P&gt;

&lt;P&gt;Index2:&lt;BR /&gt;&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
C   5/1/2000    15&lt;BR /&gt;
D   7/1/2003    13&lt;/P&gt;

&lt;P&gt;I need to combine both and provide output as below. I will use this to create graphs.&lt;BR /&gt;&lt;BR /&gt;
Output:&lt;BR /&gt;&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
A   5/1/1990    25&lt;BR /&gt;
B   7/1/2010    6&lt;BR /&gt;
C   5/1/2000    15&lt;BR /&gt;
D   7/1/2003    13&lt;/P&gt;

&lt;P&gt;Please help me. Can i use append command?&lt;/P&gt;</description>
    <pubDate>Sat, 28 May 2016 05:29:50 GMT</pubDate>
    <dc:creator>vjtechie67</dc:creator>
    <dc:date>2016-05-28T05:29:50Z</dc:date>
    <item>
      <title>combinig two search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275168#M83007</link>
      <description>&lt;P&gt;I have 2 indexers which are having the same columns&lt;BR /&gt;
Index1:&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
A   5/1/1990    25&lt;BR /&gt;
B   7/1/2010    6&lt;/P&gt;

&lt;P&gt;Index2:&lt;BR /&gt;&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
C   5/1/2000    15&lt;BR /&gt;
D   7/1/2003    13&lt;/P&gt;

&lt;P&gt;I need to combine both and provide output as below. I will use this to create graphs.&lt;BR /&gt;&lt;BR /&gt;
Output:&lt;BR /&gt;&lt;BR /&gt;
Name    DOB Age&lt;BR /&gt;
A   5/1/1990    25&lt;BR /&gt;
B   7/1/2010    6&lt;BR /&gt;
C   5/1/2000    15&lt;BR /&gt;
D   7/1/2003    13&lt;/P&gt;

&lt;P&gt;Please help me. Can i use append command?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 05:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275168#M83007</guid>
      <dc:creator>vjtechie67</dc:creator>
      <dc:date>2016-05-28T05:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: combinig two search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275169#M83008</link>
      <description>&lt;P&gt;Simply do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2
| table Name, DOB, Age
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 May 2016 17:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275169#M83008</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-05-28T17:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: combinig two search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275170#M83009</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2
| table Name DOB Age
| sort 0 Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 May 2016 21:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275170#M83009</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-28T21:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: combinig two search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275171#M83010</link>
      <description>&lt;P&gt;Or if you want to make it complicated try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ search [| tstats count WHERE index=2 OR index=1 by index | fields index] | search index=* | stats count by index | fields index ] | table Name DOB Age | sort 0 Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2016 11:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combinig-two-search-commands/m-p/275171#M83010</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-05-30T11:37:19Z</dc:date>
    </item>
  </channel>
</rss>

