<?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 one email to multiple recepients using action.email in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675606#M15726</link>
    <description>&lt;P&gt;Check in splunkd.log in your _internal index how is sendemail.py called.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2024 12:36:24 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-01-27T12:36:24Z</dc:date>
    <item>
      <title>Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675345#M15714</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp; have created an alert that&amp;nbsp; looks for instances with no proper tags . The search in alert&amp;nbsp; will return instance name and&amp;nbsp; instance owner.&amp;nbsp; On scheduled time,&amp;nbsp; email notification is getting sent to all owners with the csv file attached.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using action.email.to=$result.email_address$ (dynamic email address returned from search). Through this, the email&amp;nbsp; notification is getting sent successfully to all users in $result.email_address$ but is getting sent separately. I want all of the users to be in to field , so that one email will be sent.&lt;BR /&gt;&lt;BR /&gt;Please let me know how we are achieving this ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675345#M15714</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-25T09:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675349#M15715</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;can you clarify what you are meaning with this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;I am using action.email.to=$result.email_address$ (dynamic email address returned from search). Through this, the email  notification is getting sent successfully to all users in $result.email_address$ but is getting sent separately. I want all of the users to be in to field , so that one email will be sent.&lt;/LI-CODE&gt;&lt;P&gt;If I understood correctly you can send email to those users but "it's not sent like you want"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675349#M15715</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-01-25T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675406#M15716</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp; :Yes it is not getting sent like I want.&lt;BR /&gt;&lt;BR /&gt;I want all the emails recipients to be in "to" field with my email-id in Cc. There are around 100 email address returned from search. If emails are sent separately, then by inbox will be bombarded with 100 emails&amp;nbsp; This makes me difficult to follow up as well.&lt;BR /&gt;&lt;BR /&gt;So, I want to send one email . This is my requirement.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 16:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675406#M15716</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-25T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675457#M15718</link>
      <description>If you have several duplicate email address in to field then you could add dedup or something similar (stats + values) to remove those.</description>
      <pubDate>Thu, 25 Jan 2024 21:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675457#M15718</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-01-25T21:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675477#M15719</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp; No sir, its not about duplicates.&lt;BR /&gt;z&lt;BR /&gt;Let me be more clear then.&lt;BR /&gt;&lt;BR /&gt;Example : Below is my example result from alert search.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Instance Name&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Owner&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Tags&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;i-test1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Test1@gmail.com&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Incorrect&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;i-test2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Test2@gmail.com&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Missing&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;i-test3&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Test3@gmail.com&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Missing&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Now I have to send email to these three users with all of them in "to" field.&lt;BR /&gt;&lt;BR /&gt;How I am setting email address ? using $result.Owner$. This is getting all three emails returned from result and alert notification is getting sent. But it is getting sent as three separate emails.&lt;BR /&gt;One email to &lt;A href="mailto:Test1@gmail.com" target="_blank" rel="noopener"&gt;Test1@gmail.com, &lt;/A&gt;&lt;BR /&gt;Another separate email to &lt;A href="mailto:Test2@ge.com" target="_blank" rel="noopener"&gt;Test2@ge.com&lt;/A&gt;&lt;BR /&gt;Third separate email to &lt;A href="mailto:Test3@gmail.com" target="_blank" rel="noopener"&gt;Test3@gmail.com&lt;/A&gt;&lt;BR /&gt;For all of these three emails , &lt;A href="mailto:admin@gmail.com" target="_blank" rel="noopener"&gt;admin@gmail.com&lt;/A&gt;&amp;nbsp;is in CC.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is just an example with 3 users. But like this there are 100 owners and different instances. Sending separate emails to all 100 users with &lt;A href="mailto:admin@gmail.com" target="_blank" rel="noopener"&gt;admin@gmail.com&lt;/A&gt;&amp;nbsp;will burden emailbox of &lt;A href="mailto:admin@gmail.com" target="_blank" rel="noopener"&gt;admin@gmail.com&lt;/A&gt;&amp;nbsp;and also follow up will be difficult.&lt;BR /&gt;&lt;BR /&gt;So, I have to send one email notification with all &lt;A href="mailto:test1@gmail.com," target="_blank" rel="noopener"&gt;test1@gmail.com,&lt;/A&gt;&amp;nbsp;&lt;A href="mailto:test2@gmail.com" target="_blank" rel="noopener"&gt;test2@gmail.com&lt;/A&gt;&amp;nbsp;and &lt;A href="mailto:test3@gmail.com" target="_blank" rel="noopener"&gt;test3@gmail.com&lt;/A&gt;&amp;nbsp;in "to" field and &lt;A href="mailto:admin@gmail.com" target="_blank" rel="noopener"&gt;admin@gmail.com&lt;/A&gt;&amp;nbsp;in Cc.&amp;nbsp; This just sends one email with all owners in to field.&lt;BR /&gt;&lt;BR /&gt;I want to achieve this using &lt;STRONG&gt;action.email.to.&amp;nbsp;&lt;/STRONG&gt; This is my whole requirement. Please help me&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675477#M15719</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-26T09:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675481#M15720</link>
      <description>&lt;P&gt;It's not up to Splunk. It's up to the email infrastructure. In the end email to many recipients ends as many single emails in each of the recipient's mailbox. So i'm not quite sure what you want to achieve here.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 10:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675481#M15720</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-26T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675486#M15721</link>
      <description>&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;said this is how email works. As you have there 3 separate email even account &lt;A href="mailto:admin@foo.bar" target="_blank"&gt;admin@foo.bar&lt;/A&gt;&amp;nbsp;will be as cc on all of those. There is no way how you can separate those into three separate emails with to-recipients and then merge those again into one for cc-recipient.&lt;/P&gt;&lt;P&gt;If you want that this works like you want, then you must change your process and handle this someway different way. Could you e.g. separate alert for two part: one for to recipients and second one for cc recipients? Unfortunately I'm afraid that this generates some other issues to you &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 10:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675486#M15721</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-01-26T10:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675500#M15722</link>
      <description>&lt;P&gt;The sendemail.py script responsible for sending the emails just creates a single session and sends a single email to your configured SMTP server. The SMTP server is then responsible for sending the email away.&lt;/P&gt;&lt;P&gt;Anyway, if your emails are sent to three separate addresses on gmail, how do they land in admin's mailbox? You didn't mention anything about specifying a Cc: address in your sendemail command.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 11:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675500#M15722</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-26T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675585#M15723</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;: &lt;A href="mailto:admin@gmail.com" target="_blank"&gt;admin@gmail.com&lt;/A&gt;&amp;nbsp;will be mentioned in action.email.Cc="admin@gmail.com".&lt;BR /&gt;&lt;BR /&gt;action.email.to=$result.owner$&lt;BR /&gt;action.email.Cc=admin@gmail.com&lt;BR /&gt;&lt;BR /&gt;So, you mean sendemail.py script doesnot have capability to send one email to different users with all of them in to fields ? We cannot do that ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 06:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675585#M15723</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-27T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675587#M15724</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp; Yes sir. If my requirement cannot be met through sendemail.py script then I have to look for other way , like through some other tools I can handle this.&lt;BR /&gt;&lt;BR /&gt;This is my actual requirement. It should be as below :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;action.email.to=$result.owner$ - all users from result here
action.email.cc=$admin@foo.bar$&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I think then I cannot make this happen through alert capability in splunk then.&lt;BR /&gt;&lt;BR /&gt;Note : gmail.com is just for example purpose here. This will be different in actual case, aligns with my org.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 09:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675587#M15724</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-27T09:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675599#M15725</link>
      <description>&lt;P&gt;If you are sending exactly same email to all recipients then you probably could use e.g. *stats command to combine all recipients to mv-field and then transfer that to for a,b,….&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 10:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675599#M15725</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-01-27T10:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Send one email to multiple recepients using action.email</title>
      <link>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675606#M15726</link>
      <description>&lt;P&gt;Check in splunkd.log in your _internal index how is sendemail.py called.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 12:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Send-one-email-to-multiple-recepients-using-action-email/m-p/675606#M15726</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-27T12:36:24Z</dc:date>
    </item>
  </channel>
</rss>

