<?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 set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227282#M4168</link>
    <description>&lt;P&gt;Hi prashanthberam,&lt;BR /&gt;
you should create a lookup with your student IDs (e.g.: StudentID.csv) and then run a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup StudentID.csv 
| eval count=0, StudentID=lower(StudentID) 
| append [ search index=yourindex | StudentID=lower(StudentID) | stats count by StudentID ] 
| stats sum(count) AS Total BY StudentID 
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you have all the StudentsID that aren't present in search results.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 09:00:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-11-14T09:00:35Z</dc:date>
    <item>
      <title>How to set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227278#M4164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data like this:&lt;/P&gt;

&lt;P&gt;student id                    request  type&lt;BR /&gt;&lt;BR /&gt;
13030                              ack&lt;BR /&gt;
13030                          response &lt;BR /&gt;
13030                          request&lt;BR /&gt;
14040                            request&lt;BR /&gt;
14040                           response&lt;BR /&gt;
14040                           ack&lt;/P&gt;

&lt;P&gt;So I need to schedule a search to run every 15 minutes, and send an email alert when I do not get any response or acknowledgement for a particular student id, including the student and their multiple requests and responses. &lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 07:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227278#M4164</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2016-11-13T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227279#M4165</link>
      <description>&lt;P&gt;Assuming your data has student_id and request_type fields.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search query | stats count as RequestCount values(request_type) as RequestTypes by student_id | search RequestCount&amp;gt;=1  AND NOT (RequestTypes="response" OR RequestTypes="ack")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Setup Alert with&lt;BR /&gt;
1) Alert Type &amp;gt; Scheduled "Run on Cron Schedule" and for running every 15 minutes (For example following is only for weekdays):  &lt;CODE&gt;*/15 * * * 1-5&lt;/CODE&gt;&lt;BR /&gt;
2) Trigger Condition &amp;gt; Trigger Alert when "Number of Results" "is greater than" 0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227279#M4165</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227280#M4166</link>
      <description>&lt;P&gt;am getting every studentnames and their requesttypes and their count but i need who are doesn't have the "ACK" "RESPONSE" i need those information....&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 15:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227280#M4166</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2016-11-13T15:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227281#M4167</link>
      <description>&lt;P&gt;Can you validate the fields in search are correct? I tested with following data (14041 has only request and no ack and response). The query worked for me. Please play around with final search conditions requestCount and requestTypes (If you are getting count, then requestCount=1 alone without requestType condition, on high level should give you only requests).&lt;/P&gt;

&lt;P&gt;2016-10-29 13:24:43.310 student_id=13030 request_type=ack&lt;BR /&gt;
2016-10-29 13:25:43.310 student_id=13030 request_type=response &lt;BR /&gt;
2016-10-29 13:26:43.310 student_id=13030 request_type=request&lt;BR /&gt;
2016-10-29 13:27:43.310 student_id=14040 request_type=request&lt;BR /&gt;
2016-10-29 13:28:43.310 student_id=14040 request_type=response&lt;BR /&gt;
2016-10-29 13:29:43.310 student_id=14040 request_type=ack&lt;BR /&gt;
2016-10-29 13:27:43.310 student_id=14041 request_type=request&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype="splunk_answers_475441" 
| stats count as RequestCount values(request_type) as RequestTypes by student_id 
| search RequestCount&amp;gt;=1 AND NOT (RequestTypes="response" OR  RequestTypes="ack")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227281#M4167</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up a scheduled alert to send an email if I do not get a response or acknowledgement for a particular ID?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227282#M4168</link>
      <description>&lt;P&gt;Hi prashanthberam,&lt;BR /&gt;
you should create a lookup with your student IDs (e.g.: StudentID.csv) and then run a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup StudentID.csv 
| eval count=0, StudentID=lower(StudentID) 
| append [ search index=yourindex | StudentID=lower(StudentID) | stats count by StudentID ] 
| stats sum(count) AS Total BY StudentID 
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you have all the StudentsID that aren't present in search results.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-up-a-scheduled-alert-to-send-an-email-if-I-do-not-get/m-p/227282#M4168</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-14T09:00:35Z</dc:date>
    </item>
  </channel>
</rss>

