<?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: lookup multiple field but append the missing value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646862#M110003</link>
    <description>&lt;P&gt;The stats command regroups the results based on the values in the named fields (Name and Role, in this case).&amp;nbsp; It's how the two search results get put together into a single result set.&lt;/P&gt;&lt;P&gt;If done right, you should see one row for each pair of Name and Role values in either Table A or Table B.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 19:56:19 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-06-13T19:56:19Z</dc:date>
    <item>
      <title>How to achieve lookup multiple field but append the missing value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646838#M109997</link>
      <description>&lt;P&gt;How do I perform&amp;nbsp;lookup multiple field but append the missing value.&amp;nbsp; &amp;nbsp;Thanks&lt;BR /&gt;For example:&lt;BR /&gt;Table A:&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Role&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IP&lt;BR /&gt;PaloAlto&amp;nbsp; &amp;nbsp;Firewall&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.1.1&lt;BR /&gt;Cisco&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Router&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.1.2&lt;BR /&gt;&lt;BR /&gt;Table B&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Role&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ConsoleIP&lt;BR /&gt;PaloAlto&amp;nbsp; &amp;nbsp; &amp;nbsp;Firewall&amp;nbsp; &amp;nbsp; 192.168.10.1&lt;BR /&gt;Cisco&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Router&amp;nbsp; &amp;nbsp; &amp;nbsp; 192.168.10.2&lt;BR /&gt;Siemens&amp;nbsp; &amp;nbsp; &amp;nbsp;Switch&amp;nbsp; &amp;nbsp; &amp;nbsp; 192.168.10.3&lt;BR /&gt;&lt;BR /&gt;Table A lookup table B results:&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Role&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ConsoleIP&lt;BR /&gt;PaloAlto&amp;nbsp; &amp;nbsp;Firewall&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.10.1&lt;BR /&gt;Cisco&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Router&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.1.2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.10.2&lt;BR /&gt;Siemens&amp;nbsp; &amp;nbsp; &amp;nbsp;Switch&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;empty&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.10.3&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 00:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646838#M109997</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-06-15T00:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646848#M109999</link>
      <description>&lt;P&gt;The general form for that is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;&amp;lt;your search for Table A&amp;gt;&amp;gt;
| append [ search &amp;lt;&amp;lt;your search for Table B ]
| stats values(*) as * by Name Role&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646848#M109999</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-13T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646852#M110000</link>
      <description>&lt;P&gt;How do I do it if Table B is in CSV file?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646852#M110000</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-06-13T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646854#M110001</link>
      <description>&lt;P&gt;Read the CSV instead of searching for Table B.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;&amp;lt;your search for Table A&amp;gt;&amp;gt;
| append [ | inputlookup TableB.csv ]
| stats values(*) as * by Name Role&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646854#M110001</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-13T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646858#M110002</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;What is the reason you used "stat"?&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Does the CSV (Table B) need to have same exact field name as the Table A when using your search?&lt;BR /&gt;When I ran your command, it merged Name with multiple roles into 1 row&lt;BR /&gt;I need both tables are combined using 2 column name and role as&amp;nbsp; a key because the table has no unique ID, so it's kinda like a lookup, but if I use lookup, it won't catch value that's not on Table A (Siemens and Switch)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 18:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646858#M110002</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-06-13T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646862#M110003</link>
      <description>&lt;P&gt;The stats command regroups the results based on the values in the named fields (Name and Role, in this case).&amp;nbsp; It's how the two search results get put together into a single result set.&lt;/P&gt;&lt;P&gt;If done right, you should see one row for each pair of Name and Role values in either Table A or Table B.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 19:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/646862#M110003</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-13T19:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/647017#M110023</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Does the CSV (Table B) need to have same exact field name as the Table A when using your search?&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;It worked after I changed the field name (&lt;SPAN&gt;Name and Role) on Table B in CSV file to match the field names on Table A.&lt;BR /&gt;&lt;STRONG&gt;Is it possible to do it without matching the field names (Name and Role) on both Table A and Table B?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Please confirm this.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 18:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/647017#M110023</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-06-14T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: lookup multiple field but append the missing value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/647024#M110025</link>
      <description>&lt;P&gt;To get the right results, yes, Table A and Table B must share at least one field name.&amp;nbsp; If they don't share a field then &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; cannot group the results.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 19:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-achieve-lookup-multiple-field-but-append-the-missing/m-p/647024#M110025</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-14T19:08:06Z</dc:date>
    </item>
  </channel>
</rss>

