<?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: How to join fields from other index with comparing fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482708#M135212</link>
    <description>&lt;P&gt;S1's log ={dstIP, dstPort, srcIP,srcPort, srcUser, URL}&lt;BR /&gt;
S2's log ={dstIP, dstPort, srcIP,srcPort, srcUser, Bytes}&lt;/P&gt;

&lt;P&gt;Result = dstIP, dstPort, srcIP,srcPort, srcUser, sum(Bytes) by URL&lt;/P&gt;

&lt;P&gt;So then, I think it needs to be joined by comparing dstIP, dstPort&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 01:31:38 GMT</pubDate>
    <dc:creator>ykwon7</dc:creator>
    <dc:date>2020-04-27T01:31:38Z</dc:date>
    <item>
      <title>How to join fields from other index with comparing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482706#M135210</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Cloud you give me some tips.&lt;/P&gt;

&lt;P&gt;Search Query S1&lt;BR /&gt;
index=S1 &lt;BR /&gt;
| bla bla bla&lt;BR /&gt;
| stats value(dstIP) value(dstPort) value(srcIP) value(srcUser) by URL&lt;/P&gt;

&lt;P&gt;In S1's results, I want to add "sum(Byte)", Byte is in S2.&lt;BR /&gt;
Also S2's log has dstIP, dstPort and Byte.&lt;BR /&gt;
From comparing S1_dstIP with S2_dstIP, I want to add "sum(Byte)" on the search result.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482706#M135210</guid>
      <dc:creator>ykwon7</dc:creator>
      <dc:date>2020-09-30T05:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to join fields from other index with comparing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482707#M135211</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=S1 OR index=S2
| eval key=dstIP."_".dstPort."_".srcIP."_".srcPort."_".srcUser
| stats values(URL) as URL sum(Byte) as Bytes by key
| rex field=key "(?&amp;lt;dstIP&amp;gt;.*?)_(?&amp;lt;dstPort&amp;gt;.*?)_(?&amp;lt;srcIP&amp;gt;.*?)_(?&amp;lt;srcPort&amp;gt;.*?)_(?&amp;lt;srcUser&amp;gt;.*)"
| table URL Bytes dstIP dstPort srcIP srcUser
| where isnotnull(URL)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;see reference: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 00:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482707#M135211</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-25T00:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to join fields from other index with comparing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482708#M135212</link>
      <description>&lt;P&gt;S1's log ={dstIP, dstPort, srcIP,srcPort, srcUser, URL}&lt;BR /&gt;
S2's log ={dstIP, dstPort, srcIP,srcPort, srcUser, Bytes}&lt;/P&gt;

&lt;P&gt;Result = dstIP, dstPort, srcIP,srcPort, srcUser, sum(Bytes) by URL&lt;/P&gt;

&lt;P&gt;So then, I think it needs to be joined by comparing dstIP, dstPort&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-fields-from-other-index-with-comparing-fields/m-p/482708#M135212</guid>
      <dc:creator>ykwon7</dc:creator>
      <dc:date>2020-04-27T01:31:38Z</dc:date>
    </item>
  </channel>
</rss>

