<?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: What is the equivalent of excel's vlookup in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496217#M194632</link>
    <description>&lt;P&gt;Anytime I see the word "join" and "problem", I immediately think they're related and start there. This may not help your exact issue now, but it will help in the long term either way. As such, maybe read through this answer: &lt;A href="https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html"&gt;https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html&lt;/A&gt;&lt;BR /&gt;
I'd also recommend the coalesce command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 15:28:44 GMT</pubDate>
    <dc:creator>efavreau</dc:creator>
    <dc:date>2020-03-16T15:28:44Z</dc:date>
    <item>
      <title>What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496215#M194630</link>
      <description>&lt;P&gt;i'm trying to join these 2 tables.&lt;BR /&gt;
table 1 : index ="A" sourcetype = A WITH  fields deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber&lt;BR /&gt;
table 2 : index ="A" sourcetype = B WITH fields currentEoxMilestone, devDeviceIp, devProductFamily, devProductId, deviceName, physicalElementId, physicalType, productId&lt;/P&gt;

&lt;P&gt;this is my search : &lt;BR /&gt;
index ="A" sourcetype = A| fields deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber&lt;BR /&gt;
| join type=left physicalElementId [ search sourcetype = B| fields currentEoxMilestone, devDeviceIp, devProductFamily, devProductId, deviceName, physicalElementId, physicalType, productId ]&lt;BR /&gt;
| table currentEoxMilestone, devDeviceIp, devProductFamily, devProductId, deviceName, physicalElementId, physicalType, productId, deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber&lt;BR /&gt;
| dedup physicalElementId&lt;BR /&gt;
| sort -deviceName&lt;/P&gt;

&lt;P&gt;the problem is that the resulting table has holes on them because of the join type=left. devProductId is absent in sourcetype = A. devProductId is present in sourcetype = B. &lt;/P&gt;

&lt;P&gt;I'm thinking, i will need to create another Table - Table C. Table C basically be Table A + additional field devProductId. field devProductId would come from Table B. &lt;/P&gt;

&lt;P&gt;How do it do this ? I tried append, appendcols, join, lookup, etc. inputlookups requires a .csv file which i don't have. I have Table B.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 08:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496215#M194630</guid>
      <dc:creator>jonglim</dc:creator>
      <dc:date>2020-03-16T08:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496216#M194631</link>
      <description>&lt;P&gt;&lt;IMG src="https://imgur.com/1uY4lDD" alt="this is my current search results. Check this out to see what my problem is VISUALLY " /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 08:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496216#M194631</guid>
      <dc:creator>jonglim</dc:creator>
      <dc:date>2020-03-16T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496217#M194632</link>
      <description>&lt;P&gt;Anytime I see the word "join" and "problem", I immediately think they're related and start there. This may not help your exact issue now, but it will help in the long term either way. As such, maybe read through this answer: &lt;A href="https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html"&gt;https://answers.splunk.com/answers/387510/what-are-alternatives-to-using-the-join-command-fo.html&lt;/A&gt;&lt;BR /&gt;
I'd also recommend the coalesce command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 15:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496217#M194632</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2020-03-16T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496218#M194633</link>
      <description>&lt;P&gt;hi @jonglim,&lt;/P&gt;

&lt;P&gt;Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index ="A" sourcetype = A  OR sourcetype = B | fields deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber, currentEoxMilestone, devDeviceIp, devProductFamily, devProductId, deviceName
| stats max(*) as * by physicalElementId
| table currentEoxMilestone, devDeviceIp, devProductFamily, devProductId, deviceName, physicalElementId, physicalType, productId, deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber
| sort - deviceName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496218#M194633</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-16T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496219#M194634</link>
      <description>&lt;P&gt;didn't help.&lt;/P&gt;

&lt;P&gt;the "| stats max(*) as * by physicalElementId" basically replaced the join command.&lt;/P&gt;

&lt;P&gt;what I need is to create 1 column called devProductId. The content of devProductId depends on column deviceName.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 05:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496219#M194634</guid>
      <dc:creator>jonglim</dc:creator>
      <dc:date>2020-03-17T05:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the equivalent of excel's vlookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496220#M194635</link>
      <description>&lt;P&gt;you need Table C = Table A + additional field, then do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index ="A" sourcetype = A OR sourcetype = B | fields deviceName, physicalElementId, physicalType, productFamily, productId, productType, serialNumber, devProductId] | stats max(*) as * by deviceName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 08:14:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-equivalent-of-excel-s-vlookup-in-Splunk/m-p/496220#M194635</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-17T08:14:13Z</dc:date>
    </item>
  </channel>
</rss>

