<?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: setting up a custom alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/setting-up-a-custom-alert/m-p/50960#M688</link>
    <description>&lt;P&gt;Hi Splunker4Life,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log earliest=-30min@min latest=-0min@min NOT [ search index=_internal source=*metrics.log earliest=-60min@min latest=-30min@min | dedup series | table series ] | stats count by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this example will search for all &lt;CODE&gt;series&lt;/CODE&gt; in metrics.log for a time range 60 minutes to 30 minutes ago and use this result to compare with the same search but with a time range 30 minutes to 0 minutes ago. The resulting &lt;CODE&gt;stats&lt;/CODE&gt; will only show new series events for the last 30 minutes.&lt;/P&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2014 11:27:19 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-06-25T11:27:19Z</dc:date>
    <item>
      <title>setting up a custom alert</title>
      <link>https://community.splunk.com/t5/Alerting/setting-up-a-custom-alert/m-p/50959#M687</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to set up a custom alert that triggers when I receive more than 50 emails from any given address in the space of 30 minutes. I am using this to alert for spam. So far i have got the alert working and once triggered it does not alert again for another 2 hours. The issue i have is that after 2 hours Splunk will alert me again saying &lt;A href="mailto:xyz@blah.com"&gt;xyz@blah.com&lt;/A&gt; has sent 200 emails. As I am already aware that i have received excess emails from this sender I would like Splunk to not alert on that specific address but keep alerting on anything new that comes up. &lt;/P&gt;

&lt;P&gt;Is such a thing possible?&lt;/P&gt;

&lt;P&gt;One thought I had is that I run a scheduled search every 30 minutes and only ask it to look at the previous 30 minutes, that way it will pick up anything new. However that means if the hits of spam are spread over the course of an hour for example then i will get multiple alerts for each hit is over 50 which presents the previous issue. &lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Anu &lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 04:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/setting-up-a-custom-alert/m-p/50959#M687</guid>
      <dc:creator>Splunker4Life</dc:creator>
      <dc:date>2013-03-05T04:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a custom alert</title>
      <link>https://community.splunk.com/t5/Alerting/setting-up-a-custom-alert/m-p/50960#M688</link>
      <description>&lt;P&gt;Hi Splunker4Life,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log earliest=-30min@min latest=-0min@min NOT [ search index=_internal source=*metrics.log earliest=-60min@min latest=-30min@min | dedup series | table series ] | stats count by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this example will search for all &lt;CODE&gt;series&lt;/CODE&gt; in metrics.log for a time range 60 minutes to 30 minutes ago and use this result to compare with the same search but with a time range 30 minutes to 0 minutes ago. The resulting &lt;CODE&gt;stats&lt;/CODE&gt; will only show new series events for the last 30 minutes.&lt;/P&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 11:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/setting-up-a-custom-alert/m-p/50960#M688</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-25T11:27:19Z</dc:date>
    </item>
  </channel>
</rss>

