<?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: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36789#M397</link>
    <description>&lt;P&gt;Aha! So to clarify: when you say consecutive, you mean that if there is any event between the first and the second event, then it doesn't apply? I'm not sure if &lt;CODE&gt;transaction&lt;/CODE&gt; can do this and I'm not sure how you would do it in the search language.&lt;/P&gt;

&lt;P&gt;But to clarify: the | does not mean OR, it is more akin to the command piping in e.g. unix or windows command line. The &lt;CODE&gt;transaction dest&lt;/CODE&gt; command will group only such events that have the same dest field. The last &lt;CODE&gt;search eventcount&amp;gt;= 20&lt;/CODE&gt; will require that such a group has at least 20 events in it.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2012 07:15:24 GMT</pubDate>
    <dc:creator>echalex</dc:creator>
    <dc:date>2012-04-27T07:15:24Z</dc:date>
    <item>
      <title>Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36785#M393</link>
      <description>&lt;P&gt;Lets say i have a set of log events like this in the search app of splunk:&lt;/P&gt;

&lt;P&gt;Thu Apr 26 09:39:22 SGT 2012 INFO  no = 1 time = 0.000000 src = 164.124.33.78 dest = 192.168.0.1 protocol = TCP length = 54 info = "35165 &amp;gt; 80 [SYN] Seq=0 Win=16384 Len=0 "&lt;/P&gt;

&lt;P&gt;Thu Apr 26 09:39:22 SGT 2012 INFO  no = 2 time = 0.000001 src = 38.198.26.9 dest = 192.168.0.1 protocol = TCP length = 54 info = "14378 &amp;gt; 80 [SYN] Seq=0 Win=16384 Len=0 "&lt;/P&gt;

&lt;P&gt;Thu Apr 26 09:39:22 SGT 2012 INFO  no = 3 time = 0.000003 src = 132.212.36.201 dest = 192.168.0.1 protocol = TCP length = 54 info = "31944 &amp;gt; 80 [SYN] Seq=0 Win=16384 Len=0 "&lt;/P&gt;

&lt;P&gt;I clicked the create button &amp;gt; alert . Then i chose "monitor in real time over a rolling window of.." the under tigger if i select "custom condition is set" fom the drop down menu. I would like to create the alert that would be triggered when the custom condition is set.&lt;/P&gt;

&lt;P&gt;I would like this kind of alert to be triggered whenever the &lt;STRONG&gt;CONSECUTIVE&lt;/STRONG&gt; log events contains the &lt;STRONG&gt;protocol = TCP, the same dest field values and the info field contains the word "SYN"&lt;/STRONG&gt; eg. trigger the alert whenever the above conditions(in &lt;STRONG&gt;bold&lt;/STRONG&gt;) i mentioned appear more than 20 times. &lt;/P&gt;

&lt;P&gt;The question is how do i create the custom condition so that the custom condition would statisfy the above conditions(in &lt;STRONG&gt;bold&lt;/STRONG&gt;) i mentioned.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 08:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36785#M393</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-26T08:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36786#M394</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Sounds like you could use transaction for that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;protocol="TCP" |where match(info, "SYN") |transaction dest |search eventcount&amp;gt;=20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The transaction command will combine all the events into one and the last command will restrict the search to show the transactions with 20 or more results.&lt;/P&gt;

&lt;P&gt;Then set the condition to "Number of events is greater than 0"&lt;/P&gt;

&lt;P&gt;HTH!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36786#M394</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-26T10:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36787#M395</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 00:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36787#M395</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-27T00:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36788#M396</link>
      <description>&lt;P&gt;Sorry, i beg your pardon. What i mean is I would like this kind of alert to be triggered whenever the CONSECUTIVE log events contains the protocol = TCP AND the same dest field values AND the info field contains the word "SYN" eg. trigger the alert whenever the above conditions(in bold) i mentioned appear more than 20 times. Is it going to be the same search stmt? or replace | with &amp;amp;&amp;amp;?? I just need to clarify.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 07:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36788#M396</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-27T07:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36789#M397</link>
      <description>&lt;P&gt;Aha! So to clarify: when you say consecutive, you mean that if there is any event between the first and the second event, then it doesn't apply? I'm not sure if &lt;CODE&gt;transaction&lt;/CODE&gt; can do this and I'm not sure how you would do it in the search language.&lt;/P&gt;

&lt;P&gt;But to clarify: the | does not mean OR, it is more akin to the command piping in e.g. unix or windows command line. The &lt;CODE&gt;transaction dest&lt;/CODE&gt; command will group only such events that have the same dest field. The last &lt;CODE&gt;search eventcount&amp;gt;= 20&lt;/CODE&gt; will require that such a group has at least 20 events in it.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 07:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36789#M397</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-27T07:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36790#M398</link>
      <description>&lt;P&gt;To elaborate further, the search will take all the events with &lt;CODE&gt;protocol="TCP"&lt;/CODE&gt;, then show only those that contain "SYN" in their &lt;CODE&gt;info&lt;/CODE&gt; field, group them together so they have the same &lt;CODE&gt;dest&lt;/CODE&gt; field and finally leave out those groups with less than 20 events.&lt;/P&gt;

&lt;P&gt;The group will show as only 1 result, although the group contains 20 or more event. Therefore the alert condition only needs to find 1 or more results. (Which means "is greater than 0", of course. Now corrected in my answer.)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 07:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36790#M398</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-27T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36791#M399</link>
      <description>&lt;P&gt;Another option for the search condition could be "if custom condition is met" and for the custom condition "eventcount &amp;gt;= 20".&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 07:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36791#M399</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-04-27T07:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a particular custom condition for creating alerts that monitor matching results in real time within a rolling window</title>
      <link>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36792#M400</link>
      <description>&lt;P&gt;i asked again because i thought my question wasn't clear enough.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 07:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Creating-a-particular-custom-condition-for-creating-alerts-that/m-p/36792#M400</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-27T07:28:51Z</dc:date>
    </item>
  </channel>
</rss>

