<?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: How to create a table with fields form two different indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449656#M171415</link>
    <description>&lt;P&gt;one more question realted to same query above. I want to show the number of count by field1 ? How would I do. that &lt;/P&gt;

&lt;P&gt;|stats count by field 1  &lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 21:41:22 GMT</pubDate>
    <dc:creator>maryamchar</dc:creator>
    <dc:date>2019-05-08T21:41:22Z</dc:date>
    <item>
      <title>How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449651#M171410</link>
      <description>&lt;P&gt;I want to create a table with all fields from two different indexes. &lt;/P&gt;

&lt;P&gt;Index=A |rename fieldA as field1 |table field1 fieldAA fieldAB field AC&lt;BR /&gt;
index= B |rename fieldB as field1 | table field1 fieldBB fieldBC  &lt;/P&gt;

&lt;P&gt;I want a table shows all fields including common field which is &lt;STRONG&gt;filed1&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;|table field1 fieldAA fieldAB field AC  fieldBB fieldBC  &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449651#M171410</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T20:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449652#M171411</link>
      <description>&lt;P&gt;Try something like-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A or index=B| eval field1=coalesce(fieldA,fieldB)| stats values(*) as * by field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 21:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449652#M171411</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-05-08T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449653#M171412</link>
      <description>&lt;P&gt;Another option is to do using transaction, so the events can be clubbed together&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A or index=B
| rename fieldA as field1 
| rename fieldB as field1
| transaction field1 
| table field1 fieldAA fieldAB field AC fieldBB fieldBC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 21:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449653#M171412</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-08T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449654#M171413</link>
      <description>&lt;P&gt;Thank you! It worked! &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449654#M171413</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T21:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449655#M171414</link>
      <description>&lt;P&gt;Thank you! It worked!! &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449655#M171414</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T21:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449656#M171415</link>
      <description>&lt;P&gt;one more question realted to same query above. I want to show the number of count by field1 ? How would I do. that &lt;/P&gt;

&lt;P&gt;|stats count by field 1  &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449656#M171415</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T21:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449657#M171416</link>
      <description>&lt;P&gt;thanks. Please upvote if it helped. cheers&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449657#M171416</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-08T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449658#M171417</link>
      <description>&lt;P&gt;if you do&lt;BR /&gt;
|stats count by field 1 &lt;/P&gt;

&lt;P&gt;This will show just count for field1 after clubbing the transaction&lt;/P&gt;

&lt;P&gt;if you want to retain the original table and then count, better to do&lt;BR /&gt;
index=A or index=B&lt;BR /&gt;
 | rename fieldA as field1 &lt;BR /&gt;
 | rename fieldB as field1&lt;BR /&gt;
 | transaction field1 &lt;BR /&gt;
| streamstats count  as field_count by field&lt;BR /&gt;
 | table field1 field_count fieldAA fieldAB field AC fieldBB fieldBC&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449658#M171417</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-30T00:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449659#M171418</link>
      <description>&lt;P&gt;Sorry but I ran the search now, the table only shows certain values from one index only and ignore the other indexes. Is there a reason for that ? why the table has empty fields even though it exists on data  &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 23:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449659#M171418</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T23:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table with fields form two different indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449660#M171419</link>
      <description>&lt;P&gt;if I want to have stats values for certain fields only from both indexes, how would I do that ? Thank you!! &lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 23:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-with-fields-form-two-different-indexes/m-p/449660#M171419</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-05-08T23:24:54Z</dc:date>
    </item>
  </channel>
</rss>

