<?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: Send Email Alert by result query in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392629#M6901</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=error | stats count by email | sendmail to=$result.email$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=error | stats count by email | sendmail to=$email$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Jan 2019 07:45:24 GMT</pubDate>
    <dc:creator>p_gurav</dc:creator>
    <dc:date>2019-01-07T07:45:24Z</dc:date>
    <item>
      <title>Send Email Alert by result query</title>
      <link>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392628#M6900</link>
      <description>&lt;P&gt;Hi ALL!&lt;BR /&gt;
sourcetye=error | stats count by email | sendmail to=....&lt;/P&gt;

&lt;P&gt;I want the receiver in "sendmail" is the result of query "stats count by email"&lt;BR /&gt;
For example:&lt;BR /&gt;
If we have 3 emails from the "stats count by email"&lt;BR /&gt;
Then the query "sendmail" will send email to the 3 above emails.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 07:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392628#M6900</guid>
      <dc:creator>vumanhtai</dc:creator>
      <dc:date>2019-01-07T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email Alert by result query</title>
      <link>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392629#M6901</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=error | stats count by email | sendmail to=$result.email$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=error | stats count by email | sendmail to=$email$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 07:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392629#M6901</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2019-01-07T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email Alert by result query</title>
      <link>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392630#M6902</link>
      <description>&lt;P&gt;Hi vumanhtai,&lt;/P&gt;

&lt;P&gt;You may want to take a look at this app which allows for more dynamic alerting based on results: &lt;A href="https://splunkbase.splunk.com/app/1794/#/details"&gt;https://splunkbase.splunk.com/app/1794/#/details&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 15:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-Email-Alert-by-result-query/m-p/392630#M6902</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2019-01-07T15:22:38Z</dc:date>
    </item>
  </channel>
</rss>

