<?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: stats,streamstats command question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564811#M196750</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233055"&gt;@nnonm111&lt;/a&gt;&amp;nbsp; stats should work for your case changed span to 1h.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| bin _time span=1h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats count by _time,src_ip,dest_ip,app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats values(dest_ip) AS dest_ip , values(count) AS count by _time,src_ip,app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table _time, src_ip ,app, dest_ip , count&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 01:39:43 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-08-26T01:39:43Z</dc:date>
    <item>
      <title>stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564810#M196749</link>
      <description>&lt;P&gt;I'm going to check the permission and rejection of the scan attack per hour.&lt;BR /&gt;At this point, what I wrote...&lt;BR /&gt;Which is appropriate, Vlaues or the list? Also, which one is suitable, stats or stream stats?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")&lt;BR /&gt;| bin _time span=1d&lt;BR /&gt;| stats count by _time,src_ip,dest_ip,app&lt;BR /&gt;| stats values(dest_ip) AS dest_ip , values(count) AS count by _time,src_ip,app&lt;BR /&gt;| table _time, src_ip ,app, dest_ip , count&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 00:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564810#M196749</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-08-26T00:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564811#M196750</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233055"&gt;@nnonm111&lt;/a&gt;&amp;nbsp; stats should work for your case changed span to 1h.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| bin _time span=1h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats count by _time,src_ip,dest_ip,app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats values(dest_ip) AS dest_ip , values(count) AS count by _time,src_ip,app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table _time, src_ip ,app, dest_ip , count&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564811#M196750</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-26T01:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564812#M196751</link>
      <description>&lt;P&gt;instead of values(count) in second stats try sum(count)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564812#M196751</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-26T01:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564814#M196752</link>
      <description>&lt;P&gt;thankyou&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the difference between value and list is deduplication, which value will be removed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you do list(app) and by app, the values are different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the reason?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564814#M196752</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-08-26T01:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564815#M196753</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")
| bin _time span=1h
| stats count by _time,src_ip,dest_ip,app
| stats values(dest_ip) AS dest_ip , sum(count) AS count by _time,src_ip,app
| table _time, src_ip ,app, dest_ip , count&lt;/LI-CODE&gt;&lt;P&gt;I have updated SPL, list() is an aggregation function it doesn't care of duplicates and by is clause for grouping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 02:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564815#M196753</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-26T02:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: stats,streamstats command question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564816#M196754</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")&lt;BR /&gt;| bin _time span=1h&lt;BR /&gt;| stats count by _time,src_ip,dest_ip,app&lt;BR /&gt;| stats values(dest_ip) AS dest_ip , sum(count) AS count&amp;nbsp; by _time,src_ip,&lt;STRONG&gt;app&lt;/STRONG&gt;&lt;BR /&gt;| table _time, src_ip ,app, dest_ip , count&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;index="firewall" (action="allow" OR action="deny" ) AND ( attack="*scan")&lt;BR /&gt;| bin _time span=1h&lt;BR /&gt;| stats count by _time,src_ip,dest_ip,app&lt;BR /&gt;| stats values(dest_ip) AS dest_ip , sum(count) AS count &lt;STRONG&gt;values(app)&lt;/STRONG&gt; AS app by _time,src_ip&lt;BR /&gt;| table _time, src_ip ,app, dest_ip , count&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the difference if the app changes?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 02:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-streamstats-command-question/m-p/564816#M196754</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-08-26T02:15:42Z</dc:date>
    </item>
  </channel>
</rss>

