<?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: inner join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577674#M201317</link>
    <description>&lt;P&gt;Yes you got it correct&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to check the individual fields in the lookup to the one in the index and then join the result.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 17:15:47 GMT</pubDate>
    <dc:creator>lostcauz3</dc:creator>
    <dc:date>2021-12-07T17:15:47Z</dc:date>
    <item>
      <title>inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577657#M201303</link>
      <description>&lt;P&gt;i have a query like&lt;BR /&gt;&lt;BR /&gt;index = xyz&lt;BR /&gt;| eval assignment= upper(assignment)&lt;BR /&gt;| eval SO = upper(SO)&lt;BR /&gt;| eval Ser = upper(Ser)&lt;BR /&gt;&lt;BR /&gt;| join type=inner assignment,SO,Ser [ I inputlookup xyz.csv&lt;BR /&gt;| table assignment,SO,Ser&lt;BR /&gt;| eval assignment= upper(assignment)&lt;BR /&gt;| eval SO = upper(SO)&lt;BR /&gt;| eval Ser = upper(Ser) ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;is this is a valid query because i want only the events containing the common fields (assignment,SO,Ser).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577657#M201303</guid>
      <dc:creator>lostcauz3</dc:creator>
      <dc:date>2021-12-07T15:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577660#M201305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240555"&gt;@lostcauz3&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you don't need to use the join command but a subsearch:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = xyz [ | inputlookup xyz.csv | fields assignment SO Ser ]
| table assignment,SO,Ser
| eval assignment= upper(assignment)
| eval SO = upper(SO)
| eval Ser = upper(Ser) ]&lt;/LI-CODE&gt;&lt;P&gt;the only attention must be that the field names that you use for the match must be the same and fieldnames are case sensitive.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577660#M201305</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-07T16:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577661#M201306</link>
      <description>&lt;P&gt;The query is valid insofar as it is &lt;SPAN&gt;syntactically&lt;/SPAN&gt; correct.&amp;nbsp; Whether is truly valid or not depends on if it produces the right results for your use case.&amp;nbsp; What is the query supposed to do?&amp;nbsp; The choice of join type depends on what you want Splunk to do with events that don't match.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577661#M201306</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-07T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577668#M201312</link>
      <description>&lt;P&gt;i need the fields which are present in the index to be joined with the ones common to the ones in the lookup file.&lt;BR /&gt;&lt;BR /&gt;like assigntment in the index to the assignment in the lookup&lt;BR /&gt;&lt;BR /&gt;SO in the index to SO in the lookup file&lt;BR /&gt;&lt;BR /&gt;Ser in the index to Ser in the lookup&lt;BR /&gt;&lt;BR /&gt;the above 3 conditions are separate conditions they are not in pairs,&lt;BR /&gt;&lt;BR /&gt;i need splunk to give me only results which values for these fields which is present in the lookup as well as the index&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577668#M201312</guid>
      <dc:creator>lostcauz3</dc:creator>
      <dc:date>2021-12-07T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577669#M201313</link>
      <description>&lt;P&gt;can you please explain how the below join will happen, I'm new to splunk I'm getting confused&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;index = xyz&lt;/P&gt;&lt;P&gt;| search [ | inputlookup xyz.csv | fields assignment SO Ser ]&lt;BR /&gt;| join type=inner assignment,SO,Ser [ I inputlookup xyz.csv&lt;BR /&gt;| table assignment,SO,Ser&lt;BR /&gt;| eval assignment= upper(assignment)&lt;BR /&gt;| eval SO = upper(SO)&lt;BR /&gt;| eval Ser = upper(Ser) ]&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 16:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577669#M201313</guid>
      <dc:creator>lostcauz3</dc:creator>
      <dc:date>2021-12-07T16:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577672#M201315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240555"&gt;@lostcauz3&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you use the join as you described in your question, you are making a full match of all three keys in both main search and lookup, the same match of my answer (but without join).&lt;/P&gt;&lt;P&gt;if you want to make a join between a search and a lookup you can use the "lookup" command that works as a join (for more infos see at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Lookup&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Anyway, let me better understand: did you want to check which values of each single key (assignment, SO, Ser) of the main search are individually in the lookup, is it correct?&lt;/P&gt;&lt;P&gt;If in your lookup there's a field not present in the main search (e.g. "my_field"), you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = xyz 
| lookup xyz.csv assignment OUTPUTNEW my_field
| lookup xyz.csv SO OUTPUTNEW my_field
| lookup xyz.csv Ser OUTPUTNEW my_field
| search my_field=*
| table assignment SO Ser
| eval assignment= upper(assignment)
| eval SO = upper(SO)
| eval Ser = upper(Ser)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577672#M201315</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-07T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577674#M201317</link>
      <description>&lt;P&gt;Yes you got it correct&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to check the individual fields in the lookup to the one in the index and then join the result.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577674#M201317</guid>
      <dc:creator>lostcauz3</dc:creator>
      <dc:date>2021-12-07T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577675#M201318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240555"&gt;@lostcauz3&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;so try my previous answer and the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = xyz ( [ | inputlookup xyz.csv | rename assignment AS query | fields query ] OR [ | inputlookup xyz.csv | rename SO AS query | fields query ] OR [ | inputlookup xyz.csv | rename ser AS query | fields query ] )
| table assignment SO Ser
| eval assignment= upper(assignment)
| eval SO = upper(SO)
| eval Ser = upper(Ser)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inner-join/m-p/577675#M201318</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-07T17:22:31Z</dc:date>
    </item>
  </channel>
</rss>

