<?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 can I search across two sourcetypes for matching fields and output a table with matching results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306693#M92020</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;thanks for this. I should display the result in a table something like a table with all the fields combined to gether something like table A B C D E F. how to do this. &lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 10:18:12 GMT</pubDate>
    <dc:creator>vkrishnachand</dc:creator>
    <dc:date>2017-11-29T10:18:12Z</dc:date>
    <item>
      <title>How can I search across two sourcetypes for matching fields and output a table with matching results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306690#M92017</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have one index with two sourcetypes: S1 and S2. In sourcetype S1 I have fields A, B, C and in sourcetype S2 I have fields D, E, F. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The values in B field will sometimes be equal to values in E field&lt;/STRONG&gt;, where if they are equal my final output should be in form of table with fields A,B,C,D,E,F. &lt;/P&gt;

&lt;P&gt;Please help on the same. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 09:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306690#M92017</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2017-11-29T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search across two sourcetypes for matching fields and output a table with matching results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306691#M92018</link>
      <description>&lt;P&gt;If B &amp;amp; E are unique identifiers that are the same, you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A (sourcetype=S1 OR sourcetype=S2) 
| eval G=coalesce(B,E) 
| stats values(A) as A values(C) as C values(D) as D values(F) as F by G
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Nov 2017 09:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306691#M92018</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2017-11-29T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search across two sourcetypes for matching fields and output a table with matching results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306692#M92019</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;thanks for this. I should display the result in a table something like a table  with all the fields combined to gether something like table A B C D E F. how to do this. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 10:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306692#M92019</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2017-11-29T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search across two sourcetypes for matching fields and output a table with matching results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306693#M92020</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;thanks for this. I should display the result in a table something like a table with all the fields combined to gether something like table A B C D E F. how to do this. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 10:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306693#M92020</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2017-11-29T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search across two sourcetypes for matching fields and output a table with matching results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306694#M92021</link>
      <description>&lt;P&gt;That search should do it. You can rearrange the fields like this if you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | fields A G C D F
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(don't forget we made G the value of B or E) &lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 10:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-across-two-sourcetypes-for-matching-fields-and/m-p/306694#M92021</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2017-11-29T10:48:00Z</dc:date>
    </item>
  </channel>
</rss>

