I am trying to send an email with the help of the make results command in the splunk search but I am not receiving the email and getting the below error. Error: 2020-10-30 12:45:21,129 -0400 ERROR sendemail:1428 - [HTTP 403] Client is not authorized to perform requested action; https://127.0.0.1:8289/servicesNS/admin/cams/search/jobs/subsearch_asfd29470124adsfa319841023e?output_mode=json Traceback (most recent call last): File "/app/splunk/etc/apps/search/bin/sendemail.py", line 1421, in <module> results = sendEmail(results, settings, keywords, argvals) File "/app/splunk/etc/apps/search/bin/sendemail.py", line 400, in sendEmail jobResponseHeaders, jobResponseBody = simpleRequest(uriToJob, method='GET', getargs={'output_mode':'json'}, sessionKey=sessionKey) File "/app/splunk/lib/python2.7/site-packages/splunk/rest/__init__.py", line 559, in simpleRequest raise splunk.AuthorizationFailed(extendedMessages=uri) AuthorizationFailed: [HTTP 403] Client is not authorized to perform requested action; https://127.0.0.1:8289/servicesNS/admin/cams/search/jobs/subsearch_asdfasljfd9147192034ejdlajff?output_mode=json Query <My query> | map search="| makeresults | eval attribute=\"$value$\" | table attribute | sendemail to=\"myemail@id.com\" content_type=\"html\" message=\"Test message\"" Any help would be appreciated and Thanks in advance.
... View more