<?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: group by srcIP and total count dstIP in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41174#M9547</link>
    <description>&lt;P&gt;There are a couple of ways to do this. Easiest:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;status=failure | stats count by src, dst
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It repeats the source IP on each line, though. This may also work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;status=failure 
| stats count by src, dst
| stats list(dst) as dstIP list(count) as count by src
| rename src as srcIP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This may look more like what you want. However, this version will not export in a useful way.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2013 07:25:10 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-08-21T07:25:10Z</dc:date>
    <item>
      <title>group by srcIP and total count dstIP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41173#M9546</link>
      <description>&lt;P&gt;Hello, I'm trying to compose search, that will show me srcIP, dstIP, count by dstIP like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;srcIP       dstIP    count
1.1.1.1     2.2.2.2    15
            2.2.2.3     10
            2.3.4.3     10    
5.5.5.5     6.6.6.6     8
            7.7.7.7      8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used like this &lt;STRONG&gt;&lt;EM&gt;status="failure" | stats count(dst) by src, dst&lt;/EM&gt;&lt;/STRONG&gt;, but I was unable to get distinct value of srcIP.  Could you please advise me how to do that? Thanx in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41173#M9546</guid>
      <dc:creator>happy035</dc:creator>
      <dc:date>2013-08-21T07:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: group by srcIP and total count dstIP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41174#M9547</link>
      <description>&lt;P&gt;There are a couple of ways to do this. Easiest:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;status=failure | stats count by src, dst
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It repeats the source IP on each line, though. This may also work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;status=failure 
| stats count by src, dst
| stats list(dst) as dstIP list(count) as count by src
| rename src as srcIP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This may look more like what you want. However, this version will not export in a useful way.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41174#M9547</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-08-21T07:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: group by srcIP and total count dstIP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41175#M9548</link>
      <description>&lt;P&gt;Appreciate for your perfect answer. &lt;BR /&gt;
It works and much helpful to me.&lt;BR /&gt;
Nice day.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 08:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-by-srcIP-and-total-count-dstIP/m-p/41175#M9548</guid>
      <dc:creator>happy035</dc:creator>
      <dc:date>2013-08-21T08:32:51Z</dc:date>
    </item>
  </channel>
</rss>

