<?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: Alert Configuration based on search results in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375597#M6650</link>
    <description>&lt;P&gt;Hi @rakshithreddy,&lt;/P&gt;

&lt;P&gt;How to fetch the value of TotalHits in the mail? Is this correct - $requests.TotalHits$&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 04:25:59 GMT</pubDate>
    <dc:creator>AdsicSplunk</dc:creator>
    <dc:date>2018-03-26T04:25:59Z</dc:date>
    <item>
      <title>Alert Configuration based on search results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375594#M6647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to setup an alert on my search given below:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="foo" source="/servers/logs/access.log" | rex "\"(?&amp;lt;ConsumerIP&amp;gt;[^\"]+)\"\s+(?&amp;lt;RequestTime&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})\s(?&amp;lt;HttpMethod&amp;gt;[^\s]+)\s(?&amp;lt;EndpointURI&amp;gt;[^\s]+)\s(?&amp;lt;ResponseCode&amp;gt;\d+)\s(?&amp;lt;ServerInfo&amp;gt;[^\s]+)\s(?&amp;lt;GatewayIP&amp;gt;[^\s]+)\s(?&amp;lt;Ecid&amp;gt;[^\s]+)\s(?&amp;lt;ResponseTime&amp;gt;.+)" | stats count as TotalHits by EndpointURI
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alert Settings:-&lt;/P&gt;

&lt;P&gt;Alert: DOH-PersonProfile Alert&lt;BR /&gt;
Description:Optional&lt;BR /&gt;
Alert type: Scheduled&lt;BR /&gt;
Run on Cron Schedule&lt;BR /&gt;
Time Range: Last 1 day&lt;BR /&gt;
Cron Expression: */5 * * * *&lt;BR /&gt;
Trigger Conditions&lt;BR /&gt;
Trigger alert when Custom search count&amp;gt;1000&lt;BR /&gt;
Trigger: Once&lt;/P&gt;

&lt;P&gt;Trigger Actions&lt;BR /&gt;
When triggered&lt;BR /&gt;
 Send emai To &lt;A href="mailto:abc@company.com"&gt;abc@company.com&lt;/A&gt;&lt;BR /&gt;
Priority: High&lt;BR /&gt;
Subject: Splunk Alert: $result.TotalHits$&lt;BR /&gt;
Total number of requests received are : $requests.TotalHits$&lt;BR /&gt;
Type: HTML &amp;amp; Plain Text&lt;/P&gt;

&lt;P&gt;Why is not the alert working? Could anyone help me with this?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 10:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375594#M6647</guid>
      <dc:creator>AdsicSplunk</dc:creator>
      <dc:date>2018-03-25T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Configuration based on search results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375595#M6648</link>
      <description>&lt;P&gt;The Crontab Expression got mistyped. It is "*/5 * * * *"&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 12:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375595#M6648</guid>
      <dc:creator>AdsicSplunk</dc:creator>
      <dc:date>2018-03-25T12:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Configuration based on search results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375596#M6649</link>
      <description>&lt;P&gt;Hi  @AdsicSplunk&lt;/P&gt;

&lt;P&gt;Splunk writes the logs about mail action in _Internal - python.log &amp;amp; about  Scheduled Searches in _Internal - Scheduler.log to see why the alert is failing.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 16:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375596#M6649</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2018-03-25T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Configuration based on search results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375597#M6650</link>
      <description>&lt;P&gt;Hi @rakshithreddy,&lt;/P&gt;

&lt;P&gt;How to fetch the value of TotalHits in the mail? Is this correct - $requests.TotalHits$&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 04:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375597#M6650</guid>
      <dc:creator>AdsicSplunk</dc:creator>
      <dc:date>2018-03-26T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alert Configuration based on search results</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375598#M6651</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;ConsumerName TotalHits ErrorCount
ABC          1179      269
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If my query result is as above, how can I fetch the value of TotalHits? Please help anyone.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 05:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-Configuration-based-on-search-results/m-p/375598#M6651</guid>
      <dc:creator>AdsicSplunk</dc:creator>
      <dc:date>2018-03-26T05:00:15Z</dc:date>
    </item>
  </channel>
</rss>

