<?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: Sendmail throws SyntaxError when sending email as alert action in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/609004#M11581</link>
    <description>&lt;P&gt;Unfortunately, no. There are no errors or any other records close to the log records from the splunkd.log&lt;/P&gt;&lt;P&gt;Closest records are 2022-08-10 13:02:34,782 and 2022-08-10 14:01:08,141. They don't seem to be related.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 12:55:56 GMT</pubDate>
    <dc:creator>vzabawski</dc:creator>
    <dc:date>2022-08-10T12:55:56Z</dc:date>
    <item>
      <title>Sendmail throws SyntaxError when sending email as alert action</title>
      <link>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/608979#M11579</link>
      <description>&lt;P&gt;I have an alert configured in Splunk which should send the email when the alert is triggered.&lt;/P&gt;&lt;P&gt;The alert is being added to the list of triggered alerts, but the email is not being sent. In logs I see the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;08-09-2022 13:30:14.510 +0200 ERROR ScriptRunner [26046 AlertNotifierWorker-0] -
 stderr from '/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/mycommunity/bin/se
ndemail.py "results_link=https://mysplunk.example.com/app/mycommunity/@go?sid=sc
heduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194" "ssnam
e=MYBLOG PROD Broken Requests" "graceful=True" "trigger_time=1660044614" result
s_file="/opt/splunk/var/run/splunk/dispatch/scheduler__d051859__mycommunity__RM
D540c2da3bac08625c_at_1660044600_69194/results.csv.gz" "is_stream_malert=False"'
:    File "/opt/splunk/etc/apps/mycommunity/bin/sendemail.py", line 111
08-09-2022 13:30:14.510 +0200 ERROR ScriptRunner [26046 AlertNotifierWorker-0] -
 stderr from '/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/mycommunity/bin/se
ndemail.py "results_link=https://mysplunk.example.com/app/mycommunity/@go?sid=sc
heduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194" "ssnam
e=MYBLOG PROD Broken Requests" "graceful=True" "trigger_time=1660044614" result
s_file="/opt/splunk/var/run/splunk/dispatch/scheduler__d051859__mycommunity__RM
D540c2da3bac08625c_at_1660044600_69194/results.csv.gz" "is_stream_malert=False"'
:      except Exception, e:
08-09-2022 13:30:14.510 +0200 ERROR ScriptRunner [26046 AlertNotifierWorker-0] -
 stderr from '/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/mycommunity/bin/sendemail.py "results_link=https://mysplunk.example.com/app/mycommunity/@go?sid=scheduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194" "ssname=MYBLOG PROD Broken Requests" "graceful=True" "trigger_time=1660044614" results_file="/opt/splunk/var/run/splunk/dispatch/scheduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194/results.csv.gz" "is_stream_malert=False"':                      ^

08-09-2022 13:30:14.510 +0200 ERROR ScriptRunner [26046 AlertNotifierWorker-0] - stderr from '/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/mycommunity/bin/sendemail.py "results_link=https://mysplunk.example.com/app/mycommunity/@go?sid=scheduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194" "ssname=MYBLOG PROD Broken Requests" "graceful=True" "trigger_time=1660044614" results_file="/opt/splunk/var/run/splunk/dispatch/scheduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194/results.csv.gz" "is_stream_malert=False"':  SyntaxError: invalid syntax
08-09-2022 13:30:14.512 +0200 ERROR script [26046 AlertNotifierWorker-0] - sid:scheduler__d051859__mycommunity__RMD540c2da3bac08625c_at_1660044600_69194 External search command 'sendemail' returned error code 1. .&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is very ambiguous, so I don't know what causes this error. It seems like a bug to me. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Environment: Splunk 8.2.7&lt;/P&gt;&lt;P&gt;OS: SLES 15 SP3&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/608979#M11579</guid>
      <dc:creator>vzabawski</dc:creator>
      <dc:date>2022-08-10T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail throws SyntaxError when sending email as alert action</title>
      <link>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/608998#M11580</link>
      <description>&lt;P&gt;There should be more information about the error in python.log.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 12:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/608998#M11580</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-10T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail throws SyntaxError when sending email as alert action</title>
      <link>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/609004#M11581</link>
      <description>&lt;P&gt;Unfortunately, no. There are no errors or any other records close to the log records from the splunkd.log&lt;/P&gt;&lt;P&gt;Closest records are 2022-08-10 13:02:34,782 and 2022-08-10 14:01:08,141. They don't seem to be related.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 12:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/609004#M11581</guid>
      <dc:creator>vzabawski</dc:creator>
      <dc:date>2022-08-10T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail throws SyntaxError when sending email as alert action</title>
      <link>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/611550#M11611</link>
      <description>&lt;P&gt;I don't know what the exact problem was, but the root cause of it was a cloned search app. User's alert was created in a separate app which was cloned from Splunk 7.0.0 search app, so it contained &lt;STRONG&gt;default&lt;/STRONG&gt; with configs from that version of Splunk. After I've upgraded Splunk to 8.2, this legacy configuration started causing troubles because Splunk 7 and 8 are very different.&lt;/P&gt;&lt;P&gt;Solution: I've deleted &lt;STRONG&gt;default&lt;/STRONG&gt; dir from the app. Another step was to copy &lt;STRONG&gt;$SPLUNK_HOME/etc/apps/search/default/data/ui/nav/default.xml&lt;/STRONG&gt; to &lt;STRONG&gt;$SPLUNK_HOME/etc/apps/&amp;lt;yourapp&amp;gt;/local/data/ui/nav/default.xml&lt;/STRONG&gt;. That allowed me to preserve tabs from the search app.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 07:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendmail-throws-SyntaxError-when-sending-email-as-alert-action/m-p/611550#M11611</guid>
      <dc:creator>vzabawski</dc:creator>
      <dc:date>2022-09-01T07:42:40Z</dc:date>
    </item>
  </channel>
</rss>

