<?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 Can Splunk join on multiple columns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63425#M15668</link>
    <description>&lt;P&gt;How can you search Splunk to return a join on 2 columns&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=test1 [search=test2 |fields col1, col2]|fields col1, col2, col3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, I want something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT * from test1 join test2 on test1.col1 =test2.col1 and test1.col2 = test2.col2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 19 Mar 2011 05:23:13 GMT</pubDate>
    <dc:creator>suhprano</dc:creator>
    <dc:date>2011-03-19T05:23:13Z</dc:date>
    <item>
      <title>Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63425#M15668</link>
      <description>&lt;P&gt;How can you search Splunk to return a join on 2 columns&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=test1 [search=test2 |fields col1, col2]|fields col1, col2, col3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, I want something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT * from test1 join test2 on test1.col1 =test2.col1 and test1.col2 = test2.col2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Mar 2011 05:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63425#M15668</guid>
      <dc:creator>suhprano</dc:creator>
      <dc:date>2011-03-19T05:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63426#M15669</link>
      <description>&lt;P&gt;You should be able to do this by specify multiple fields in Splunk's join command:&lt;/P&gt;

&lt;P&gt;sourcetype=test1 | fields col1,col2 | join col1,col2 [search sourcetype=test2 | fields col1,col2,col3]&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2011 05:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63426#M15669</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-03-19T05:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63427#M15670</link>
      <description>&lt;P&gt;thanks! do you know if there's a limit to how many subsearches or joins splunk restricts?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2011 06:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63427#M15670</guid>
      <dc:creator>suhprano</dc:creator>
      <dc:date>2011-03-19T06:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63428#M15671</link>
      <description>&lt;P&gt;It's unnecessary (and undesirable mostly) to use &lt;CODE&gt;join&lt;/CODE&gt; if you can just use: `sourcetype=test1 [search=test2 | dedup col1 col2 | fields col1 col2]&lt;/P&gt;

&lt;P&gt;This is basically your original search, but it should work just fine unless you've got more than a few thousand distinct &lt;CODE&gt;col1,col2&lt;/CODE&gt; value pairs.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 00:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63428#M15671</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-21T00:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63429#M15672</link>
      <description>&lt;P&gt;How to achieve the same result, but when fields names are different? I have the problem to rebuild transactions from postfix/amavis logs, where the message is processed by a pipeline of different steps/processes and at a certain point, a new processing requests is queued in the pipeline. I have in an event the original "queue_id" and a new "queued_as" id, that in a next event will appear as a new "queue_id".&lt;/P&gt;

&lt;P&gt;So I need to correlate events with a "queue_id" with events that have the same "queued_as" value.&lt;/P&gt;

&lt;P&gt;Ideas?!?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63429#M15672</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2020-09-28T11:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63430#M15673</link>
      <description>&lt;P&gt;Try asking this as a new question so others can easier find and make use of it.  In your case have you tried using coalesce for queue_id and queued_as fields?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63430#M15673</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-28T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk join on multiple columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63431#M15674</link>
      <description>&lt;P&gt;Try rename&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Rename" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Rename&lt;/A&gt;&lt;BR /&gt;
| rename original_field as "new_name"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-Splunk-join-on-multiple-columns/m-p/63431#M15674</guid>
      <dc:creator>jslealdi</dc:creator>
      <dc:date>2020-09-30T01:58:35Z</dc:date>
    </item>
  </channel>
</rss>

