<?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: Custom Trigger Condition -- How do I write this basic rule? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124547#M1900</link>
    <description>&lt;P&gt;Does this work&lt;/P&gt;

&lt;P&gt;base search calculates value of Lot1&lt;/P&gt;

&lt;P&gt;Can I use Lot1 like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where Lot1 &amp;gt; 80
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Feb 2015 15:56:44 GMT</pubDate>
    <dc:creator>rajendra_b</dc:creator>
    <dc:date>2015-02-25T15:56:44Z</dc:date>
    <item>
      <title>Custom Trigger Condition -- How do I write this basic rule?</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124543#M1896</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a very basic alert I want to setup.  Essentially I want to trigger an alert when Splunk sees more then X amount of deny logs from the same source address.&lt;/P&gt;

&lt;P&gt;I can create an alert if its sees more then X amount of deny logs but I am only interested when a high ammount of denies come from a single source.&lt;/P&gt;

&lt;P&gt;If I could see how this is written the logic can be used to create countless other alert conditions.  I appreciate any help.  Below is a sample deny log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Apr  8 13:45:20 192.168.100.1 1 2014-04-08T13:45:21.129-04:00 FW RT_FLOW - RT_FLOW_SESSION_DENY [junos@2636.1.1.1.2.39 source-address="192.55.66.44" source-port="7986" destination-address="172.19.2.1" destination-port="2000" service-name="junos-sccp" protocol-id="6" icmp-type="0" policy-name="DENY-LOG(global)" source-zone-name="trust" destination-zone-name="trust" application="UNKNOWN" nested-application="UNKNOWN" username="N/A" roles="N/A" packet-incoming-interface="vlan.3" encrypted="UNKNOWN" reason="policy deny"] session denied 192.55.66.44/7986-&amp;gt;172.19.2.1/2000 junos-sccp 6(0) DENY-LOG(global) trust trust UNKNOWN UNKNOWN N/A(N/A) vlan.3 UNKNOWN policy deny
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Apr 2014 17:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124543#M1896</guid>
      <dc:creator>ttl_expired</dc:creator>
      <dc:date>2014-04-08T17:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition -- How do I write this basic rule?</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124544#M1897</link>
      <description>&lt;P&gt;You'd do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search yielding deny events | stats count by source-address | where count &amp;gt; X
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm assuming you're looking at the field &lt;CODE&gt;source-address&lt;/CODE&gt;, fill in a value for X. Define an alert to trigger whenever this search yields events.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 20:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124544#M1897</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-08T20:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition -- How do I write this basic rule?</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124545#M1898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am a little confused.  I created a regular search looking for the word deny.  This matches all the deny logs from my firewall.&lt;/P&gt;

&lt;P&gt;From there I saved the search as an alert.  Now under the trigger condition selected custom and put the following&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats count by source-address | where count &amp;gt; 5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This is a realtime search looking at the past 1  minute.&lt;/P&gt;

&lt;P&gt;What am I doing wront here?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 13:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124545#M1898</guid>
      <dc:creator>ttl_expired</dc:creator>
      <dc:date>2014-04-10T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition -- How do I write this basic rule?</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124546#M1899</link>
      <description>&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; should be part of the saved search. The &lt;CODE&gt;where&lt;/CODE&gt; can be part of the search as well, or it can be defined in the trigger condition.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 13:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124546#M1899</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-10T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition -- How do I write this basic rule?</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124547#M1900</link>
      <description>&lt;P&gt;Does this work&lt;/P&gt;

&lt;P&gt;base search calculates value of Lot1&lt;/P&gt;

&lt;P&gt;Can I use Lot1 like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where Lot1 &amp;gt; 80
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Feb 2015 15:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Trigger-Condition-How-do-I-write-this-basic-rule/m-p/124547#M1900</guid>
      <dc:creator>rajendra_b</dc:creator>
      <dc:date>2015-02-25T15:56:44Z</dc:date>
    </item>
  </channel>
</rss>

