<?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 do you dynamically send an email notification to multiple recipients based on the search output? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451217#M7967</link>
    <description>&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1794/"&gt;sendresults&lt;/A&gt; exists for this use case&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 22:28:15 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-10-31T22:28:15Z</dc:date>
    <item>
      <title>How do you dynamically send an email notification to multiple recipients based on the search output?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451214#M7964</link>
      <description>&lt;P&gt;I have one alert stanza in my savedsearches.conf. Now, I want to dynamically send email notifications to the consumers based on the output of the result query. Suppose the alert query will give me the below output table after one run:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6004i8F32583C46E420B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now, based on the consumer names, I should be  getting email alerts to &lt;STRONG&gt;different **email Ids&lt;/STRONG&gt;** with &lt;STRONG&gt;different email subjects&lt;/STRONG&gt; dynamically. So that I don't need to set up multiple alert stanzas in savedsearches.conf for different email recipients.&lt;/P&gt;

&lt;P&gt;Please let me know how I can implement this.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451214#M7964</guid>
      <dc:creator>isamrat</dc:creator>
      <dc:date>2018-10-31T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically send an email notification to multiple recipients based on the search output?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451215#M7965</link>
      <description>&lt;P&gt;have you seen this answer?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/213340/how-to-get-splunk-sendemail-command-to-send-multip.html"&gt;https://answers.splunk.com/answers/213340/how-to-get-splunk-sendemail-command-to-send-multip.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I think this might be an approach that will work for your ask.&lt;/P&gt;

&lt;P&gt;This documentation might also help. If there is a way you can join email addresses to the consumer, you could use $result.email$ in the To field of the alert.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Alert/Emailnotification#Example_-_Send_email_to_different_recipients_based_on_search_results"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Alert/Emailnotification#Example_-_Send_email_to_different_recipients_based_on_search_results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451215#M7965</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-10-31T19:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically send an email notification to multiple recipients based on the search output?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451216#M7966</link>
      <description>&lt;P&gt;Thanks for your insights. But I would rather prefer to have some solution based on scripting. Let me know if you have any solution based on scripting.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 19:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451216#M7966</guid>
      <dc:creator>isamrat</dc:creator>
      <dc:date>2018-10-31T19:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically send an email notification to multiple recipients based on the search output?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451217#M7967</link>
      <description>&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1794/"&gt;sendresults&lt;/A&gt; exists for this use case&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 22:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451217#M7967</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-10-31T22:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically send an email notification to multiple recipients based on the search output?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451218#M7968</link>
      <description>&lt;P&gt;Install and use sendresults app from the splunkbase to do so.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 20:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-dynamically-send-an-email-notification-to-multiple/m-p/451218#M7968</guid>
      <dc:creator>chandrasekharko</dc:creator>
      <dc:date>2018-11-01T20:31:13Z</dc:date>
    </item>
  </channel>
</rss>

