<?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: join on 2 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228938#M67751</link>
    <description>&lt;P&gt;But &lt;CODE&gt;join&lt;/CODE&gt; has limits that &lt;CODE&gt;stats&lt;/CODE&gt; does not.  You may not notice clearly enough to regret this approach!&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 14:24:30 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-05-02T14:24:30Z</dc:date>
    <item>
      <title>join on 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228935#M67748</link>
      <description>&lt;P&gt;I have a list of servers, osname &amp;amp; version and a lookup with products, versions and end-of-support dates. Each product (Operating system in this case, has an entry per version. So version 4 of a certain OS has it's own out-of-support date, version 5 another supportdate. etc.&lt;/P&gt;

&lt;P&gt;I would like to create an overview, and tell of each server what it's suspected out-of-support-date will be, based on it's os AND version.&lt;/P&gt;

&lt;P&gt;The problem is that I can join the two, but it will only match on the product name (first one). Now every server has the same out-of-support date, regardless of it's version. &lt;/P&gt;

&lt;P&gt;So, how can I join on two fields, instead of just one? I tried &lt;CODE&gt;join Product, Version [ | inputlookup ..&lt;/CODE&gt; already, but without success. &lt;/P&gt;

&lt;P&gt;Any help appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 12:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228935#M67748</guid>
      <dc:creator>renems</dc:creator>
      <dc:date>2016-05-02T12:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: join on 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228936#M67749</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | stats values(*) AS * BY Product Version
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2016 12:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228936#M67749</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-02T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: join on 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228937#M67750</link>
      <description>&lt;P&gt;I don't know why, but when I reverse the join it seems to work. &lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228937#M67750</guid>
      <dc:creator>renems</dc:creator>
      <dc:date>2016-05-02T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: join on 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228938#M67751</link>
      <description>&lt;P&gt;But &lt;CODE&gt;join&lt;/CODE&gt; has limits that &lt;CODE&gt;stats&lt;/CODE&gt; does not.  You may not notice clearly enough to regret this approach!&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 14:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228938#M67751</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-02T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: join on 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228939#M67752</link>
      <description>&lt;P&gt;What are you what to do is this?&lt;/P&gt;

&lt;P&gt;your search * | table Product, Version | join Product [ | inputlookup | eval LastVersion=Version | table Product LastVersion]&lt;/P&gt;

&lt;P&gt;than you can compare the different versions &lt;/P&gt;

&lt;P&gt;where Version!=LastVersion&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 19:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-on-2-fields/m-p/228939#M67752</guid>
      <dc:creator>patrick_muller</dc:creator>
      <dc:date>2016-05-02T19:16:44Z</dc:date>
    </item>
  </channel>
</rss>

