<?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 2 fields with the same value in the same search. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501840#M139698</link>
    <description>&lt;P&gt;Separate, both queries return results.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 20:53:58 GMT</pubDate>
    <dc:creator>LeandroKopke</dc:creator>
    <dc:date>2020-03-27T20:53:58Z</dc:date>
    <item>
      <title>Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501836#M139694</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;
I need help to be able to unify 2 fields that have the same value, however, in separate searches.&lt;BR /&gt;
Here is an example:&lt;/P&gt;

&lt;P&gt;Search 1: &lt;BR /&gt;
source=* sourcetype=fortigate user=* action=tunnel-up reason="tunnel established"| table  _time user group action remip reason tunnelip&lt;/P&gt;

&lt;P&gt;Search 2:&lt;BR /&gt;
source=* sourcetype=fortigate dstport=6443 action=close |table srcip, srcintf&lt;/P&gt;

&lt;P&gt;The "srcip" and "remip" fields have the same values. I need both searches together, to be able to use the user field of the first search in the second search.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501836#M139694</guid>
      <dc:creator>LeandroKopke</dc:creator>
      <dc:date>2020-03-27T18:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501837#M139695</link>
      <description>&lt;P&gt;If search 1 returns 10,000 or fewer results, try a subsearch.  Don't forget to specify index(es) in the searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=* sourcetype=fortigate dstport=6443 action=close 
  [ source= sourcetype=fortigate user=* action=tunnel-up reason="tunnel established" | fields user remip | rename remip as srcip | format ]
|table srcip, srcintf
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 19:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501837#M139695</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-27T19:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501838#M139696</link>
      <description>&lt;P&gt;hi richgalloway, thanks for you reply. &lt;BR /&gt;
I did the execution of the command only, it doesn't return any results.&lt;BR /&gt;
I've tried using append and join, but to no avail.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 19:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501838#M139696</guid>
      <dc:creator>LeandroKopke</dc:creator>
      <dc:date>2020-03-27T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501839#M139697</link>
      <description>&lt;P&gt;Keep in mind my answer is mostly a copy-and-paste of your example queries so any errors there are errors in mine as well.&lt;BR /&gt;
Try running the subsearch (the part inside &lt;CODE&gt;[]&lt;/CODE&gt; by itself.  Once that is working correctly, add it to the main search.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 19:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501839#M139697</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-27T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501840#M139698</link>
      <description>&lt;P&gt;Separate, both queries return results.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 20:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501840#M139698</guid>
      <dc:creator>LeandroKopke</dc:creator>
      <dc:date>2020-03-27T20:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501841#M139699</link>
      <description>&lt;P&gt;And when you paste the results of the subsearch onto the end of the main search, what do you get?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 21:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501841#M139699</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-27T21:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 fields with the same value in the same search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501842#M139700</link>
      <description>&lt;P&gt;This does not make sense.  Please explain what fields from what search are to be used to program details in what other search OR explain how data from both searches need to be merged together.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 00:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-2-fields-with-the-same-value-in-the-same-search/m-p/501842#M139700</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-04-01T00:31:21Z</dc:date>
    </item>
  </channel>
</rss>

