<?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 trigger alert in timechart field for every 10 min count in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246366#M28009</link>
    <description>&lt;P&gt;How about having separate alerts for each ID?&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 20:18:28 GMT</pubDate>
    <dc:creator>burwell</dc:creator>
    <dc:date>2016-05-11T20:18:28Z</dc:date>
    <item>
      <title>How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246361#M28004</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query which is in timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=PQR sourcetype=abc NOT "\\x00\\x00\\x00\\x00\\x00"|timechart  count by ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results i am getting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                    p1   p2   p3   p4
2016-05-11 00:00:00       0    1    1    0
2016-05-11 00:10:00       1    1    0    2
2016-05-11 00:20:00       2    1    2    3
2016-05-11 00:30:00       1    0    0    0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to trigger an email alert  on &lt;CODE&gt;P1&lt;/CODE&gt; if the &lt;CODE&gt;count&amp;gt;1&lt;/CODE&gt; for every &lt;CODE&gt;10 min&lt;/CODE&gt;. I created a alert with &lt;CODE&gt;cron job for every 10 min&lt;/CODE&gt; and                  custom condition : &lt;CODE&gt;Search P1&amp;gt;0&lt;/CODE&gt;&lt;BR /&gt;
ALert mode: I want when the count of P1 is increasing (once per search i kept)&lt;/P&gt;

&lt;P&gt;requirement: if the P1 count comes in next 10 min example(2016-05-11 00:40:00) as 1 then i need a email to trigger&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 18:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246361#M28004</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T18:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246362#M28005</link>
      <description>&lt;P&gt;I think what you are looking for is something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=PQR sourcetype=abc NOT "\\x00\\x00\\x00\\x00\\x00" earliest=10m@m id="P1"| stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and set the alert if there is result. Schedule the alert to run every 10 mins. This will alert only if there is a new P1 in the last 10 mins.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 18:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246362#M28005</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-11T18:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246363#M28006</link>
      <description>&lt;P&gt;Maybe like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=PQR sourcetype=abc NOT "\\x00\\x00\\x00\\x00\\x00" | timechart  span=10m count BY ID | stats count count(eval(p1&amp;gt;1)) AS countGreaterThanOneP1 | where countGreaterThanOneP1=count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 19:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246363#M28006</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-11T19:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246364#M28007</link>
      <description>&lt;P&gt;Thanks @Woodcock.&lt;/P&gt;

&lt;P&gt;This query is not returning results.&lt;/P&gt;

&lt;P&gt;little more modification to the requirement:&lt;/P&gt;

&lt;P&gt;I need alerts for all ID's(P1,P2,P3....etc ) in timechart. &lt;BR /&gt;
case1: For example if P1 count is 1   at 2016-05-11 00:30:00  then it should trigger email saying that p1 count is 1&lt;BR /&gt;
 case2: For example if P2 count is 3 at  2016-05-11 00:40:00 then it should trigger email saying that p2 count is 3&lt;BR /&gt;
case3:  For example if P1 and P2 count is 2 ,4 at  2016-05-11 00:50:00 then it should trigger email saying that p1 and p2 count is 4&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246364#M28007</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246365#M28008</link>
      <description>&lt;P&gt;thanks @sundareshr &lt;/P&gt;

&lt;P&gt;Yes you are correct but i need for others id also like p2,p3,p4...etc &lt;/P&gt;

&lt;P&gt;I need alerts for all ID's(P1,P2,P3....etc ) in timechart. &lt;BR /&gt;
case1: For example if P1 count is 1 at 2016-05-11 00:30:00 then it should trigger email saying that p1 count is 1&lt;BR /&gt;
case2: For example if P2 count is 3 at 2016-05-11 00:40:00 then it should trigger email saying that p2 count is 3&lt;BR /&gt;
case3: For example if P1 and P2 count is 2 ,4 at 2016-05-11 00:50:00 then it should trigger email saying that p1 and p2 count is 4 &lt;BR /&gt;
like this&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 19:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246365#M28008</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T19:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246366#M28009</link>
      <description>&lt;P&gt;How about having separate alerts for each ID?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246366#M28009</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2016-05-11T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246367#M28010</link>
      <description>&lt;P&gt;@burwell&lt;/P&gt;

&lt;P&gt;In the example i shown only 4 ids(p1,p2,p3,p4) but i MAY get 10 id's also.Then i cannot create 10 seperate  right?&lt;/P&gt;

&lt;P&gt;I need to trigger alert any of the ID count has  greater than 1 for every 10 min&lt;BR /&gt;
sample data:&lt;/P&gt;

&lt;P&gt;_time                               p1   p2   p3   p4&lt;BR /&gt;
 2016-05-11 00:00:00       0    1    1    0&lt;BR /&gt;
 2016-05-11 00:10:00       1    1    0    2&lt;BR /&gt;
 2016-05-11 00:20:00       2    1    2    3&lt;BR /&gt;
 2016-05-11 00:30:00       1    0    0    0&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246367#M28010</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T20:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246368#M28011</link>
      <description>&lt;P&gt;Do all have to be in the same alert?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 20:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246368#M28011</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-11T20:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246369#M28012</link>
      <description>&lt;P&gt;@Sundaresh Yes,I need all in same alert .&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 21:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246369#M28012</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T21:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert in timechart field for every 10 min count</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246370#M28013</link>
      <description>&lt;P&gt;I used this query in search : index=PQR sourcetype=ABC NOT "\x00\x00\x00\x00\x00" earliest=-10m@m|chart count by ID|table count,ID&lt;/P&gt;

&lt;P&gt;and in custom search i used: search count&amp;gt;0&lt;/P&gt;

&lt;P&gt;It worked&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 23:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-trigger-alert-in-timechart-field-for-every-10-min-count/m-p/246370#M28013</guid>
      <dc:creator>mprreddy51</dc:creator>
      <dc:date>2016-05-11T23:43:02Z</dc:date>
    </item>
  </channel>
</rss>

