<?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: Splunk 8.0 sendemail/subsearch issues after upgrading in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/549951#M156065</link>
    <description>&lt;P&gt;and you got a fix for this? i am getting the same issue&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 04:16:48 GMT</pubDate>
    <dc:creator>wangjianiu</dc:creator>
    <dc:date>2021-04-30T04:16:48Z</dc:date>
    <item>
      <title>Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465686#M131173</link>
      <description>&lt;P&gt;Recently upgraded from 7.2.3 to 8.0 and a previously configured scheduled alert is not longer sending emails correctly.  The search pulls from a lookup table that contains vulnerability scan data containing four fields: Hostname, Vulnerability, Priority, and Responsibility.  What I'm trying to accomplish and what has been working up until the upgrade was that a map search would iterate over the hostnames, group all vulnerabilities for that host into a table, and send that as a separate email per host.  So in this example, the subsearch would find up to 25 hosts and send 25 separate emails to an email address.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;| inputlookup vulnreporthostlookup.csv | stats values(Vulnerability) AS Vulnerability by Hostname | map maxsearches=25 search="|inputlookup vulnreporthostlookup.csv | search Hostname=\"$Hostname$\"| table Hostname, Vulnerability, Priority, Responsibility | sendemail to=&lt;A href="mailto:username@domain.com"&gt;username@domain.com&lt;/A&gt; from=&lt;A href="mailto:splunkalert@domain.com"&gt;splunkalert@domain.com&lt;/A&gt; subject=\"Scan result data for $result.Responsibility$ : $Hostname$\" message="" sendresults=true inline=true sendcsv=true"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The error in python.log probably as something to do with it.  It complains about authorization to run the subsearch I guess?  I've checked and reapplied capabilities to my account and I'm a full admin.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2019-10-24 10:56:41,391 -0400 ERROR   sendemail:1422 - [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/servicesNS/username/default_app/search/jobs/subsearch_1571928983.1146_1571929000.25?output_mode=json"&gt;https://127.0.0.1:8089/servicesNS/username/default_app/search/jobs/subsearch_1571928983.1146_1571929000.25?output_mode=json&lt;/A&gt;&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I understand that this could be a two-fold problem, one is that my syntax is not optimized for the job at hand and the other being something that broke permissions on upgrade.  Does anyone have any thoughts?  Need help.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465686#M131173</guid>
      <dc:creator>aallred</dc:creator>
      <dc:date>2019-10-24T15:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465687#M131174</link>
      <description>&lt;P&gt;Have you opened a support case for this? If there is an actual defect in 8.0 that is causing this issue, they can file it with the engineering team.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465687#M131174</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2019-10-25T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465688#M131175</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
did you solve the problem?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 10:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465688#M131175</guid>
      <dc:creator>djluke</dc:creator>
      <dc:date>2020-04-06T10:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465689#M131176</link>
      <description>&lt;P&gt;The subquery doesn't seem to have the session context.  &lt;/P&gt;

&lt;P&gt;"| sendemail [options] " called from parent search works fine. &lt;/P&gt;

&lt;P&gt;"| sendemail [options]" in map command subquery returns:&lt;/P&gt;

&lt;P&gt;ERROR     sendemail:1435 - [HTTP 403] Client is not authorized to perform requested action; &lt;A href="https://127.0.0.1:8089/servicesNS/auditadmin/auditreports/search/jobs/subsearch_1587751603.162_1587751603.7?output_mode=json"&gt;https://127.0.0.1:8089/servicesNS/auditadmin/auditreports/search/jobs/subsearch_1587751603.162_1587751603.7?output_mode=json&lt;/A&gt;&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/export/appl/ela/apps/splunk/etc/apps/search/bin/sendemail.py", line 1428&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 18:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/465689#M131176</guid>
      <dc:creator>rickferrante</dc:creator>
      <dc:date>2020-04-24T18:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/509393#M142358</link>
      <description>&lt;P&gt;I had this issue when running 8.0.3.&amp;nbsp; I just upgraded to 8.0.5 and it works as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 20:25:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/509393#M142358</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2020-07-15T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/527549#M148925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/191929"&gt;@aallred&lt;/a&gt;, Did you got a chance to solve the problem, or do you have any workaround for your scenarios.&lt;BR /&gt;I am also facing the same problem right now. The same alert use to work in the 7.2.1 version and it is not working after I upgrade to 8.0.1.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/527549#M148925</guid>
      <dc:creator>impurush</dc:creator>
      <dc:date>2020-11-02T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8.0 sendemail/subsearch issues after upgrading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/549951#M156065</link>
      <description>&lt;P&gt;and you got a fix for this? i am getting the same issue&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 04:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-0-sendemail-subsearch-issues-after-upgrading/m-p/549951#M156065</guid>
      <dc:creator>wangjianiu</dc:creator>
      <dc:date>2021-04-30T04:16:48Z</dc:date>
    </item>
  </channel>
</rss>

