<?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: Help with Antispam alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303986#M10966</link>
    <description>&lt;P&gt;2018:01:12-13:13:38 smtp_gateway smtpd[3024]: SCANNER[3024]: id="1000" severity="info" sys="SecureMail" sub="smtp" name="email passed" srcip="xxx.xxx.xxx.xxx" from="&lt;A href="mailto:name@domain.com"&gt;name@domain.com&lt;/A&gt;" to="&lt;A href="mailto:name@mydomain.com"&gt;name@mydomain.com&lt;/A&gt;" subject="AN EMAIL" queueid="1ea4lm-0000mm-Gp" size="6000"&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 20:56:21 GMT</pubDate>
    <dc:creator>ccuadra</dc:creator>
    <dc:date>2018-01-12T20:56:21Z</dc:date>
    <item>
      <title>Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303984#M10964</link>
      <description>&lt;P&gt;Good day team,&lt;/P&gt;

&lt;P&gt;I am trying to create an alert for anti-spam, it is supposed to send an email to me if someone sends more than 10 emails in 5 minutes. However, I cannot make it work for some reason. Could you please help me with this?&lt;/P&gt;

&lt;P&gt;This is the search I am using:&lt;/P&gt;

&lt;P&gt;host="10.10.10.10" "email passed" NOT from="" NOT &lt;A href="mailto:admin@mydomail.com"&gt;admin@mydomail.com&lt;/A&gt; | stats count by from name subject |where count &amp;gt;= 10&lt;/P&gt;

&lt;P&gt;These are the alert settings:&lt;/P&gt;

&lt;P&gt;Settings&lt;/P&gt;

&lt;P&gt;Alert name: SPAM&lt;BR /&gt;
Alert Type: Real-time&lt;/P&gt;

&lt;P&gt;Trigger condition&lt;/P&gt;

&lt;P&gt;Trigger alert when: Per-Result&lt;/P&gt;

&lt;P&gt;Trigger actions&lt;/P&gt;

&lt;P&gt;When triggered: Send email&lt;/P&gt;

&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303984#M10964</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T16:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303985#M10965</link>
      <description>&lt;P&gt;Can you paste samples of the logs that this search would make use of?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 18:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303985#M10965</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T18:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303986#M10966</link>
      <description>&lt;P&gt;2018:01:12-13:13:38 smtp_gateway smtpd[3024]: SCANNER[3024]: id="1000" severity="info" sys="SecureMail" sub="smtp" name="email passed" srcip="xxx.xxx.xxx.xxx" from="&lt;A href="mailto:name@domain.com"&gt;name@domain.com&lt;/A&gt;" to="&lt;A href="mailto:name@mydomain.com"&gt;name@mydomain.com&lt;/A&gt;" subject="AN EMAIL" queueid="1ea4lm-0000mm-Gp" size="6000"&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303986#M10966</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T20:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303987#M10967</link>
      <description>&lt;P&gt;I think maybe the issue is you also grouped by subject, which means it would only fire if the same subject was sent multiple times.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="10.10.10.10" "email passed" NOT from="" NOT admin@mydomail.com | stats count, values(name) AS name BY from subject | where count &amp;gt;= 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303987#M10967</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303988#M10968</link>
      <description>&lt;P&gt;This will be one example:&lt;/P&gt;

&lt;P&gt;2018:01:12-13:13:38 smtp_gateway smtpd[3024]: SCANNER[3024]: id="1000" severity="info" sys="SecureMail" sub="smtp" name="email passed" srcip="xxx.xxx.xxx.xxx" from="&lt;A href="mailto:name@domain.com"&gt;name@domain.com&lt;/A&gt;" to="&lt;A href="mailto:name@mydomain.com"&gt;name@mydomain.com&lt;/A&gt;" subject="AN EMAIL" queueid="1ea4lm-0000mm-Gp" size="6000"&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303988#M10968</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T21:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303989#M10969</link>
      <description>&lt;P&gt;I tested your search, however, is not showing the results as I need to see it. Usually the spams send the same subject to many users, "Account information" for instance, so I need it to send me an email if someone sends more than 10 emails with the same subject (which I could verify if is a spam).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303989#M10969</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T21:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303990#M10970</link>
      <description>&lt;P&gt;Is worth mentioning that for test purposes, I changed the rule to report &amp;gt;= 5 emails, I sent 5 emails to different email addresses with the same subject, but the alert did not trigger, not sure what is happening.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303990#M10970</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T21:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303991#M10971</link>
      <description>&lt;P&gt;Edited my answer to reflect grouping by from and subject.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303991#M10971</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303992#M10972</link>
      <description>&lt;P&gt;Ok, I changed my search as you suggested and sent 5 emails (the rule was changed to &amp;gt;=4) but the alert was not triggered according to splunk. However, if I open the alert search, it founds my test.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303992#M10972</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T21:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303993#M10973</link>
      <description>&lt;P&gt;So the search works outside of the alert, but the alert isn't firing from the scheduled run?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303993#M10973</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T21:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303994#M10974</link>
      <description>&lt;P&gt;This is the alert configuration:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i64.tinypic.com/287diir.png" alt="Alert" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 21:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303994#M10974</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T21:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303995#M10975</link>
      <description>&lt;P&gt;That search runs once per hour.  If you want it to run every 5 minutes change your cron expression to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*/5 * * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you have it now it runs only when minute=1 (which will only happen once per hour).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 22:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303995#M10975</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T22:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Antispam alert</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303996#M10976</link>
      <description>&lt;P&gt;That was my problem, now its working like a charm!!! You are a genius. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 22:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-Antispam-alert/m-p/303996#M10976</guid>
      <dc:creator>ccuadra</dc:creator>
      <dc:date>2018-01-12T22:16:18Z</dc:date>
    </item>
  </channel>
</rss>

