<?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: How to get a count of events that generates an alert after a host has more than X related events during a given period of time? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226592#M4154</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=yoursourcetype param_device_id="USB*" | stats count by host_name | where count&amp;gt;yourXvalue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the alert condition as Where number of event &amp;gt; 0 from this search&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2015 21:47:23 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-09-16T21:47:23Z</dc:date>
    <item>
      <title>How to get a count of events that generates an alert after a host has more than X related events during a given period of time?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226589#M4151</link>
      <description>&lt;P&gt;I am trying to have a count of events that generates an alert after a host has more than x USB related events during a given amount of time. &lt;/P&gt;

&lt;P&gt;This is the type of event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1   »  9/16/15
3:56:29.653 AM  
usn="46558922" time_stamp="2015-09-16 03:56:29.653 UTC" host_name="HOST" vapi_name="File Write" begin_time="2015-09-15 16:15:52.502 UTC" end_time="2015-09-15 17:00:44.533 UTC" caller_process_id="2128" caller_process_name="C:/Program.exe" parameter="F:/" user_name="SYSTEM" ip_addr="0.0.0.0" file_size="0" param_device_id="USBSTOR\Disk&amp;amp;Ven_HUAWEI&amp;amp;Prod_TF_CARD_Storage&amp;amp;Rev_2.31\7&amp;amp;12ad7558&amp;amp;0"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2015 19:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226589#M4151</guid>
      <dc:creator>seaed_ac</dc:creator>
      <dc:date>2015-09-16T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count of events that generates an alert after a host has more than X related events during a given period of time?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226590#M4152</link>
      <description>&lt;P&gt;Save this search and trigger for &lt;CODE&gt;Number of events greater than 0&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count by host | where count &amp;lt; X
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2015 21:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226590#M4152</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-16T21:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count of events that generates an alert after a host has more than X related events during a given period of time?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226591#M4153</link>
      <description>&lt;P&gt;Hi there.&lt;BR /&gt;
Thank you for your reply. How can I differentiate between the different hosts. Basically what I am trying to achieve is to be alerted when a user goes over a pre-defined number of files while using a usb external hdd. So far I get all the hosts together but I need to have it separated either by host_name or by user_name  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226591#M4153</guid>
      <dc:creator>seaed_ac</dc:creator>
      <dc:date>2020-09-29T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count of events that generates an alert after a host has more than X related events during a given period of time?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226592#M4154</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=yoursourcetype param_device_id="USB*" | stats count by host_name | where count&amp;gt;yourXvalue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the alert condition as Where number of event &amp;gt; 0 from this search&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 21:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226592#M4154</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-16T21:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a count of events that generates an alert after a host has more than X related events during a given period of time?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226593#M4155</link>
      <description>&lt;P&gt;The search already does count &lt;CODE&gt;by host&lt;/CODE&gt;; if you need &lt;CODE&gt;by host_name&lt;/CODE&gt; then do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | stats count by host_name | where count &amp;lt; X
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2015 23:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-a-count-of-events-that-generates-an-alert-after-a/m-p/226593#M4155</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-16T23:53:43Z</dc:date>
    </item>
  </channel>
</rss>

