<?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 Join with condition OR in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318263#M174962</link>
    <description>&lt;P&gt;Hi  Everyone&lt;/P&gt;

&lt;P&gt;i need to use a splunk join,&lt;/P&gt;

&lt;P&gt;i want ask is possible use two field with OR condition &lt;/P&gt;

&lt;P&gt;Example&lt;/P&gt;

&lt;P&gt;my search |  fields column 1, column 2, column 3 | join cloumn 1 OR column 2 [ my second search]&lt;/P&gt;

&lt;P&gt;thank you&lt;BR /&gt;
For your time&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 09:59:43 GMT</pubDate>
    <dc:creator>gibba</dc:creator>
    <dc:date>2017-04-11T09:59:43Z</dc:date>
    <item>
      <title>Join with condition OR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318263#M174962</link>
      <description>&lt;P&gt;Hi  Everyone&lt;/P&gt;

&lt;P&gt;i need to use a splunk join,&lt;/P&gt;

&lt;P&gt;i want ask is possible use two field with OR condition &lt;/P&gt;

&lt;P&gt;Example&lt;/P&gt;

&lt;P&gt;my search |  fields column 1, column 2, column 3 | join cloumn 1 OR column 2 [ my second search]&lt;/P&gt;

&lt;P&gt;thank you&lt;BR /&gt;
For your time&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 09:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318263#M174962</guid>
      <dc:creator>gibba</dc:creator>
      <dc:date>2017-04-11T09:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join with condition OR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318264#M174963</link>
      <description>&lt;P&gt;Hi gibba,&lt;BR /&gt;
no you cannot use an OR condition in a join.&lt;BR /&gt;
What's the problem values in column1 and column2?&lt;BR /&gt;
if this is the problem you could use an eval with coalesce function&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my search 
| eval column=coalesce(column1,column2) 
| join column [ my second search]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 10:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318264#M174963</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-11T10:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join with condition OR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318265#M174964</link>
      <description>&lt;P&gt;Ciao Giuseppe &lt;/P&gt;

&lt;P&gt;i try to use olny one column  beacause the second sometimes is  null but i can't use coalesce beacuase i need column 2= null&lt;/P&gt;

&lt;P&gt;thank for your time&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 10:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318265#M174964</guid>
      <dc:creator>gibba</dc:creator>
      <dc:date>2017-04-11T10:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Join with condition OR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318266#M174965</link>
      <description>&lt;P&gt;Skip &lt;CODE&gt;join&lt;/CODE&gt; entirely (it has inescapable limits) and do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my saearch OR my second search | eval joiner=coalesce(column1, column2) | stats values(*) AS* BY joiner | fields - joiner
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just try it before you think it won't work.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 13:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-with-condition-OR/m-p/318266#M174965</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-11T13:55:45Z</dc:date>
    </item>
  </channel>
</rss>

