<?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: reciprocal entries in next row in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362957#M92875</link>
    <description>&lt;P&gt;Thanks for the reply.  It will be separate rows as entries &lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 19:03:24 GMT</pubDate>
    <dc:creator>dxw350</dc:creator>
    <dc:date>2017-06-23T19:03:24Z</dc:date>
    <item>
      <title>reciprocal entries in next row</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362955#M92873</link>
      <description>&lt;P&gt;I am using lookup commands for data in a csv file and trying to map src_ip to the HOST and the SERVER in different rows. As an example&lt;BR /&gt;
MY ISSUE: There are always entries for both Host and Server, but if the Server entry is not listed as a separate row in the HOST column I need to add it as a reciprocal row. Is there a way to do that with |lookup HOST as src_ip OUTPUT src_ip dest_zone SERVER  |lookup SERVER as src_ip OUTPUT src_ip dest_zone SERVER&lt;BR /&gt;
Example:&lt;BR /&gt;
HOST                SERVER&lt;BR /&gt;
192.168..1.1      192.168.2.10&lt;BR /&gt;
192.168.2.10     192.168.1.1 This pair is good&lt;/P&gt;

&lt;P&gt;192.168.1.3      192.168.2.11&lt;BR /&gt;
Missing reciprocal This row needs the reverse&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362955#M92873</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2020-09-29T14:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: reciprocal entries in next row</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362956#M92874</link>
      <description>&lt;P&gt;Is your query like this? (there might be a type in first lookup)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving field src_ip |lookup HOST as src_ip OUTPUT src_ip dest_zone HOST |lookup SERVER as src_ip OUTPUT src_ip dest_zone SERVER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The example output, is it single rows or two rows? &lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362956#M92874</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-23T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: reciprocal entries in next row</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362957#M92875</link>
      <description>&lt;P&gt;Thanks for the reply.  It will be separate rows as entries &lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362957#M92875</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2017-06-23T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: reciprocal entries in next row</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362958#M92876</link>
      <description>&lt;P&gt;I wouldn't spend a minute thinking about this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup SERVER 
| appendpipe [ | eval hold=HOST | eval HOST=SERVER | eval SERVER=hold | fields - hold] 
| dedup HOST SERVER
| outputlookup append=f SERVER 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362958#M92876</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-23T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: reciprocal entries in next row</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362959#M92877</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I tried your appendpipe solution and it didn't work.  I only have one inputlookup csv called "data_file.csv".  How can the following be corrected to work?&lt;/P&gt;

&lt;P&gt;index=firewall_juniper sourcetype="juniper:junos:firewall"  |dedup src_ip dest_ip | lookup data_file HOST_IP as src_ip output APPLICATION_SERVICE SERVER_IP  |search APPLICATION_SERVICE=$param_app$ | inputlookup data_file| appendpipe [ | eval hold=HOST_IP | eval HOST_IP=SERVER_IP | eval SERVER_IP=hold | fields-hold] | dedup HOST_IP SERVER_IP | outputlookup append=f PARITY_SERVER_IP  |search APPLICATION_SERVICE=$param_app$  |table src_ip src dest_ip HOSTNAME SERVER_IP &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/reciprocal-entries-in-next-row/m-p/362959#M92877</guid>
      <dc:creator>dxw350</dc:creator>
      <dc:date>2020-09-29T14:39:19Z</dc:date>
    </item>
  </channel>
</rss>

