<?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: Top command based on lookup result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335054#M159773</link>
    <description>&lt;P&gt;try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=waf   Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort branch .- count|dedup 10 branch 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 Jul 2017 08:48:23 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2017-07-31T08:48:23Z</dc:date>
    <item>
      <title>Top command based on lookup result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335051#M159770</link>
      <description>&lt;P&gt;The following search will give the count of attacks by attacker_IP and destination branch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=waf   Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I just want to show the top 10 attacker IPs  &lt;STRONG&gt;per Branch&lt;/STRONG&gt; based on their high count.&lt;/P&gt;

&lt;P&gt;Help is always appreciated.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335051#M159770</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-07-27T14:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Top command based on lookup result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335052#M159771</link>
      <description>&lt;P&gt;I think the &lt;CODE&gt;top&lt;/CODE&gt; command will do that.  Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=waf   Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort -count | top limit=10 count by branch
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335052#M159771</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-27T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Top command based on lookup result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335053#M159772</link>
      <description>&lt;P&gt;Not working for me.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 08:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335053#M159772</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-07-31T08:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Top command based on lookup result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335054#M159773</link>
      <description>&lt;P&gt;try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=waf   Name=block | lookup Branches IP AS dest OUTPUTNEW branch | stats count by src branch | sort branch .- count|dedup 10 branch 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jul 2017 08:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-command-based-on-lookup-result/m-p/335054#M159773</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-07-31T08:48:23Z</dc:date>
    </item>
  </channel>
</rss>

