<?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 Do two joins matching inputlookup data to build table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Do-two-joins-matching-inputlookup-data-to-build-table/m-p/355056#M105045</link>
    <description>&lt;P&gt;I have a lookup - ips.csv - formated like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip,name
1.2.3.4,server1
2.3.4.5,server2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My indexed data is source, destination. I want a table that is like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source, source_name, destination, destination_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not all sources or destinations will have a name in the lookup, so I  want to see all rows, even if there is no name...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source, source_name, destination, destination_name
1.2.3.3,server,8.8.8.8,-
2.3.4.5,server2,4.4.4.4,client3

index=foo | table source destination | rename source AS ip | join [|inputlookup ips.csv | fields ip name] | rename ip AS source name AS source_name | rename destination AS ip | join [|inputlookup ips.csv | fields ip name]  rename ip AS destination name AS destination_name | table source source_name destination destination_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Never seems to complete. I also get an error about renaming fields too many times.&lt;/P&gt;

&lt;P&gt;I've experimented with join, append, appendcols... with no luck. How can I build this table?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 20:31:59 GMT</pubDate>
    <dc:creator>yacht_rock</dc:creator>
    <dc:date>2017-06-15T20:31:59Z</dc:date>
    <item>
      <title>Do two joins matching inputlookup data to build table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-two-joins-matching-inputlookup-data-to-build-table/m-p/355056#M105045</link>
      <description>&lt;P&gt;I have a lookup - ips.csv - formated like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip,name
1.2.3.4,server1
2.3.4.5,server2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My indexed data is source, destination. I want a table that is like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source, source_name, destination, destination_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not all sources or destinations will have a name in the lookup, so I  want to see all rows, even if there is no name...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source, source_name, destination, destination_name
1.2.3.3,server,8.8.8.8,-
2.3.4.5,server2,4.4.4.4,client3

index=foo | table source destination | rename source AS ip | join [|inputlookup ips.csv | fields ip name] | rename ip AS source name AS source_name | rename destination AS ip | join [|inputlookup ips.csv | fields ip name]  rename ip AS destination name AS destination_name | table source source_name destination destination_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Never seems to complete. I also get an error about renaming fields too many times.&lt;/P&gt;

&lt;P&gt;I've experimented with join, append, appendcols... with no luck. How can I build this table?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 20:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-two-joins-matching-inputlookup-data-to-build-table/m-p/355056#M105045</guid>
      <dc:creator>yacht_rock</dc:creator>
      <dc:date>2017-06-15T20:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Do two joins matching inputlookup data to build table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-two-joins-matching-inputlookup-data-to-build-table/m-p/355057#M105046</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo 
| dedup source destination
| table source destination
| lookup jps.csv ip AS source OUTPUT name AS source_name 
| lookup jps.csv ip AS destination OUTPUT name AS destination_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 21:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-two-joins-matching-inputlookup-data-to-build-table/m-p/355057#M105046</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-15T21:30:44Z</dc:date>
    </item>
  </channel>
</rss>

