<?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: Sendemail to recipient from a field in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169591#M3693</link>
    <description>&lt;P&gt;Actual search | sendemail [Frame a search to give result as to=the_desired_address from field] subject=desired sendresults=true&lt;BR /&gt;
get the email field, use eval function to make the subsearch yeild the result as to=email_address&lt;/P&gt;

&lt;P&gt;This is working for me in 6.0.2.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:25:22 GMT</pubDate>
    <dc:creator>rthakalapally1</dc:creator>
    <dc:date>2020-09-28T16:25:22Z</dc:date>
    <item>
      <title>Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169589#M3691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;is it possible with Splunk V6 to dynamically mail an alert based on a field which contains the mail addy?&lt;/P&gt;

&lt;P&gt;i have a lookup list where i can show the owner of IP's or Host Systems. And i want that if an error/outage happens the system owner will be notified via mail.&lt;/P&gt;

&lt;P&gt;i want to avoid to develop an python script and use this with script execution within alerts or scheduled reports.&lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;BR /&gt;
Matthias&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 13:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169589#M3691</guid>
      <dc:creator>Matthias_BY</dc:creator>
      <dc:date>2013-12-06T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169590#M3692</link>
      <description>&lt;P&gt;This feature is planed to be included in Splunk Version 6.1&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 12:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169590#M3692</guid>
      <dc:creator>Matthias_BY</dc:creator>
      <dc:date>2014-03-17T12:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169591#M3693</link>
      <description>&lt;P&gt;Actual search | sendemail [Frame a search to give result as to=the_desired_address from field] subject=desired sendresults=true&lt;BR /&gt;
get the email field, use eval function to make the subsearch yeild the result as to=email_address&lt;/P&gt;

&lt;P&gt;This is working for me in 6.0.2.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169591#M3693</guid>
      <dc:creator>rthakalapally1</dc:creator>
      <dc:date>2020-09-28T16:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169592#M3694</link>
      <description>&lt;P&gt;I tried the above idea and the search runs, but I see no email.  If i manually put an email it works.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rest splunk_server=local /services/search/jobs&lt;BR /&gt;
| eval diskUsageMB=diskUsage/1024/1024&lt;BR /&gt;
| rename eai:acl.owner as user&lt;BR /&gt;
| lookup ldap_user user_name as user OUTPUT email as email&lt;BR /&gt;
| stats sum(diskUsageMB) as totalDiskUsage values(email) AS address by user&lt;BR /&gt;
| sort -totalDiskUsage | where totalDiskUsage &amp;gt; 400&lt;BR /&gt;
| sendemail [&lt;BR /&gt;
     | rest splunk_server=local /services/search/jobs&lt;BR /&gt;
     | eval diskUsageMB=diskUsage/1024/1024&lt;BR /&gt;
     | rename eai:acl.owner as user&lt;BR /&gt;
     | lookup ldap_user user_name as user OUTPUT email as email&lt;BR /&gt;
     | stats sum(diskUsageMB) as totalDiskUsage values(email) AS to by user&lt;BR /&gt;
     | where totalDiskUsage &amp;gt; 300&lt;BR /&gt;
     | fields to] &lt;BR /&gt;
subject="WARNING: Space on Splunk disk" sendresults=t&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169592#M3694</guid>
      <dc:creator>jluste</dc:creator>
      <dc:date>2020-09-28T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169593#M3695</link>
      <description>&lt;P&gt;This worked for 1 person.&lt;BR /&gt;
To make work for all emails, add this in the subsearch before the &lt;CODE&gt; | fields to] &amp;lt;\code&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats values(to) AS to | nomv to | rex mode=sed field=to "s/ /,/g" &amp;lt;\code&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 19:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169593#M3695</guid>
      <dc:creator>jluste</dc:creator>
      <dc:date>2014-06-13T19:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169594#M3696</link>
      <description>&lt;P&gt;10 Months after had to do again in another situation, eventually its been a period  knew we could do it, came back here and your example search helped to get me back on-track quickly . Successfully sent emails to many addresses.&lt;BR /&gt;
And here it is a Thank You for the follow up comments.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 01:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169594#M3696</guid>
      <dc:creator>rthakalapally1</dc:creator>
      <dc:date>2015-01-16T01:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail to recipient from a field</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169595#M3697</link>
      <description>&lt;P&gt;I tried that and it did not work. Does this only work for 6.0.2 because I have 6.2.2.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 17:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-to-recipient-from-a-field/m-p/169595#M3697</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-07-13T17:44:38Z</dc:date>
    </item>
  </channel>
</rss>

