<?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 Using REST API to search and send an email if there is a result? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Using-REST-API-to-search-and-send-an-email-if-there-is-a-result/m-p/289807#M5324</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to create a shell script periodically with crontab to run a Splunk search query, and if there are any results/events found in the search query, it will send an email alert with the crontab. &lt;/P&gt;

&lt;P&gt;I need some guidance on achieving that as right now, i am new to writing a bash script to run on Splunk. I am using Splunk Free with no alert functions.&lt;/P&gt;

&lt;P&gt;Any help will be appreciated! Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 08:25:12 GMT</pubDate>
    <dc:creator>5plunked</dc:creator>
    <dc:date>2018-02-19T08:25:12Z</dc:date>
    <item>
      <title>Using REST API to search and send an email if there is a result?</title>
      <link>https://community.splunk.com/t5/Alerting/Using-REST-API-to-search-and-send-an-email-if-there-is-a-result/m-p/289807#M5324</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to create a shell script periodically with crontab to run a Splunk search query, and if there are any results/events found in the search query, it will send an email alert with the crontab. &lt;/P&gt;

&lt;P&gt;I need some guidance on achieving that as right now, i am new to writing a bash script to run on Splunk. I am using Splunk Free with no alert functions.&lt;/P&gt;

&lt;P&gt;Any help will be appreciated! Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 08:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Using-REST-API-to-search-and-send-an-email-if-there-is-a-result/m-p/289807#M5324</guid>
      <dc:creator>5plunked</dc:creator>
      <dc:date>2018-02-19T08:25:12Z</dc:date>
    </item>
  </channel>
</rss>

