<?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 tstats and _time span in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353889#M5656</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Still not sure on the '_time span=5s' element of the following search. The goal is to alert when a source device fails&lt;BR /&gt;
to login to greater than 10 destinations in a 5 second period. If I run this search over say, 7 days, I get failed logins &lt;BR /&gt;
from the same source device to multiple destinations but they are spaced out over a much greater time period than the 5 seconds&lt;BR /&gt;
Im looking for. &lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;

&lt;P&gt;| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=Authentication where nodename=Authentication.Failed_Authentication &lt;BR /&gt;
by "Authentication.src","Authentication.dest", "Authentication.src_user" _time span=5s&lt;BR /&gt;
| rename "Authentication.src" as "Source_Device", "Authentication.dest" AS "Destination" &lt;BR /&gt;
| stats dc(Destination) AS Total_Dest, values(Destination) AS List_Destinations, by Source_Device, &lt;BR /&gt;
| where Total_Dest &amp;gt; 10&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:13:09 GMT</pubDate>
    <dc:creator>jacqu3sy</dc:creator>
    <dc:date>2020-09-29T13:13:09Z</dc:date>
    <item>
      <title>tstats and _time span</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353889#M5656</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Still not sure on the '_time span=5s' element of the following search. The goal is to alert when a source device fails&lt;BR /&gt;
to login to greater than 10 destinations in a 5 second period. If I run this search over say, 7 days, I get failed logins &lt;BR /&gt;
from the same source device to multiple destinations but they are spaced out over a much greater time period than the 5 seconds&lt;BR /&gt;
Im looking for. &lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;

&lt;P&gt;| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=Authentication where nodename=Authentication.Failed_Authentication &lt;BR /&gt;
by "Authentication.src","Authentication.dest", "Authentication.src_user" _time span=5s&lt;BR /&gt;
| rename "Authentication.src" as "Source_Device", "Authentication.dest" AS "Destination" &lt;BR /&gt;
| stats dc(Destination) AS Total_Dest, values(Destination) AS List_Destinations, by Source_Device, &lt;BR /&gt;
| where Total_Dest &amp;gt; 10&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353889#M5656</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2020-09-29T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and _time span</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353890#M5657</link>
      <description>&lt;P&gt;Try with this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly=true  count from datamodel=Authentication where nodename=Authentication.Failed_Authentication 
by "Authentication.src","Authentication.dest", "Authentication.src_user",_time 
| rename "Authentication.src" as "Source_Device", "Authentication.dest" AS "Destination" 
| timechart span=5s dc(Destination) AS Total_Dest, values(Destination) AS List_Destinations | where Total_Dest &amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Mar 2017 10:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353890#M5657</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-03-14T10:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and _time span</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353891#M5658</link>
      <description>&lt;P&gt;Nope. If I run that over a period of 7 days it just gives me a breakdown by day of destinations where a failed login has occurred. I need something which takes a source address and then calculates where that device has failed to login to move than 10 destinations within a 5 second period and alerts accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 12:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/tstats-and-time-span/m-p/353891#M5658</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-03-14T12:20:48Z</dc:date>
    </item>
  </channel>
</rss>

