<?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: search two indexes specifying two matching columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668685#M229371</link>
    <description>&lt;P&gt;Your example will not work as I understand Jname comes from index=jedi and Sname comes from index=sith, so unless you aggregate the events together, Jname and Sname will never exist in the same event, so try my example.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 03:49:15 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-11-15T03:49:15Z</dc:date>
    <item>
      <title>search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668639#M229350</link>
      <description>&lt;P&gt;I am trying to generate three reports with stats. The first is where jedi and sith have matching columns. The third is where jedi and sith do not match. Example:&lt;BR /&gt;&lt;BR /&gt;index=jedi&lt;BR /&gt;| table saber_color, Jname, strengths&lt;/P&gt;&lt;P&gt;index-=sith&lt;BR /&gt;| table saber_color, Sname, strengths&lt;BR /&gt;&lt;BR /&gt;I need to list where Jname=Sname&lt;BR /&gt;&lt;BR /&gt;The third one is&lt;/P&gt;&lt;P&gt;where the Jname!=Sname&amp;nbsp;&lt;/P&gt;&lt;P&gt;The caveat is I cannot use the join for this query.&lt;/P&gt;&lt;P&gt;Any good ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668639#M229350</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2023-11-14T18:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668670#M229360</link>
      <description>&lt;P&gt;Do you mean where Jname and Sname are the same AND the saber_colour + strengths are the same or something else?&lt;/P&gt;&lt;P&gt;This will find you all the cases where the same name has the same combination of saber_color and strengths&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jedi OR index=sith
| eval name=coalesce(Jname, Sname)
| stats values(name) as names by saber_color strengths
| where mvcount(names)=1&lt;/LI-CODE&gt;&lt;P&gt;and to find where Jname!=SName, change the mvcount to equal 2.&lt;/P&gt;&lt;P&gt;Good caveat not using join - you should always avoid join and it's almost never the right solution!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 01:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668670#M229360</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-15T01:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668683#M229369</link>
      <description>&lt;P&gt;Just the Jname and Sname need to match and all the other columns will coalesce.&amp;nbsp;&lt;BR /&gt;Because of the sheer size of the Sname (I set it up as our windows log index)index it worries me. However if I can find a way to drill down and expedite.&lt;BR /&gt;&lt;BR /&gt;index IN (jedi AND sith)&lt;BR /&gt;| table saber_color, Jname, Sname, strengths, saber_color&lt;BR /&gt;| where Jname=Sname&lt;BR /&gt;&lt;BR /&gt;That is what I am trying. I'll give it a shot with your method. &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 03:45:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668683#M229369</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2023-11-15T03:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668685#M229371</link>
      <description>&lt;P&gt;Your example will not work as I understand Jname comes from index=jedi and Sname comes from index=sith, so unless you aggregate the events together, Jname and Sname will never exist in the same event, so try my example.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 03:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668685#M229371</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-15T03:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668740#M229394</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;will give it a try. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 14:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/668740#M229394</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2023-11-15T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: search two indexes specifying two matching columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/669094#M229499</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;it worked now I have to figure out how to utilize my drill down to isolate the columns and index heading with my query. Either way thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 15:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-two-indexes-specifying-two-matching-columns/m-p/669094#M229499</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2023-11-18T15:45:04Z</dc:date>
    </item>
  </channel>
</rss>

