<?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 search by specific condition within time range in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78586#M19872</link>
    <description>&lt;P&gt;Hello,i would like to search the specific ip attack events within the specific time range for real time,e.g. if the attack events of one IP are more than 5 times, splunk will send an alert. i use host="xxx" eventtype="specific_ip"| timechart span=1m count(SRC_IP) by SRC_IP, it can show the attack times table group by SRC_IP within each 1min time range, now how can i just pick the attack times more than 3 times, that is to say if there exists such one event(&amp;gt;=3), then spluck will send an alert?Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2010 14:13:34 GMT</pubDate>
    <dc:creator>hjwang</dc:creator>
    <dc:date>2010-10-27T14:13:34Z</dc:date>
    <item>
      <title>search by specific condition within time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78586#M19872</link>
      <description>&lt;P&gt;Hello,i would like to search the specific ip attack events within the specific time range for real time,e.g. if the attack events of one IP are more than 5 times, splunk will send an alert. i use host="xxx" eventtype="specific_ip"| timechart span=1m count(SRC_IP) by SRC_IP, it can show the attack times table group by SRC_IP within each 1min time range, now how can i just pick the attack times more than 3 times, that is to say if there exists such one event(&amp;gt;=3), then spluck will send an alert?Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78586#M19872</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2010-10-27T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: search by specific condition within time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78587#M19873</link>
      <description>&lt;P&gt;instead of using "timechart" you might consider this.. &lt;/P&gt;

&lt;P&gt;host="xxx" eventtype="specific_ip" earliest=-1m@m| stats count by src_ip | where count &amp;gt;=3&lt;/P&gt;

&lt;P&gt;This search says... in the last minute (on the minute) summarize the count events by src_ip, where any cell in the "count" column stats table is greater than or equal to three.&lt;/P&gt;

&lt;P&gt;you also might schedule this search to run every minute.  3 failed logins is a rather simplistic search.  You might consider looking at a successful login after three failed logins.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2010 20:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78587#M19873</guid>
      <dc:creator>Michael_Wilde</dc:creator>
      <dc:date>2010-10-27T20:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: search by specific condition within time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78588#M19874</link>
      <description>&lt;P&gt;Thanks,Michael, if i use earliest command, the time's span can not be shown in search result table, only (src_ip, count). i wanna show like (_time, src_ip, count) but if i use timechart...| where count&amp;gt;=3, the search result table would not be displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-by-specific-condition-within-time-range/m-p/78588#M19874</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2020-09-28T09:19:53Z</dc:date>
    </item>
  </channel>
</rss>

