<?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 Health Check: msg=&amp;quot;A script exited abnormally with exit status: 4&amp;quot; in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469011#M7080</link>
    <description>&lt;P&gt;From the Monitoring Console:&lt;/P&gt;

&lt;P&gt;Health Check: msg="A script exited abnormally with exit status: 4" &lt;BR /&gt;
input="./opt/splunk/etc/apps/DA-ESS-ThreatIntelligence/bin/threat_intelligence_manager.py" stanza="default"&lt;/P&gt;

&lt;P&gt;Health Check: msg="A script exited abnormally with exit status: 1" input="./opt/splunk/etc/apps/threatstream/bin/ts_ioc_ingest.py" stanza="ts_ioc_ingest://threatstream_app"&lt;/P&gt;

&lt;P&gt;Working on resolving this health check warning occurring on our ES instance.  Has anyone experienced it before? &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:00:37 GMT</pubDate>
    <dc:creator>dillardo_2</dc:creator>
    <dc:date>2020-09-30T02:00:37Z</dc:date>
    <item>
      <title>Health Check: msg="A script exited abnormally with exit status: 4"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469011#M7080</link>
      <description>&lt;P&gt;From the Monitoring Console:&lt;/P&gt;

&lt;P&gt;Health Check: msg="A script exited abnormally with exit status: 4" &lt;BR /&gt;
input="./opt/splunk/etc/apps/DA-ESS-ThreatIntelligence/bin/threat_intelligence_manager.py" stanza="default"&lt;/P&gt;

&lt;P&gt;Health Check: msg="A script exited abnormally with exit status: 1" input="./opt/splunk/etc/apps/threatstream/bin/ts_ioc_ingest.py" stanza="ts_ioc_ingest://threatstream_app"&lt;/P&gt;

&lt;P&gt;Working on resolving this health check warning occurring on our ES instance.  Has anyone experienced it before? &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469011#M7080</guid>
      <dc:creator>dillardo_2</dc:creator>
      <dc:date>2020-09-30T02:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Health Check: msg="A script exited abnormally with exit status: 4"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469012#M7081</link>
      <description>&lt;P&gt;Can you share a screenshot with the errors?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 00:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469012#M7081</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-30T00:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Health Check: msg="A script exited abnormally with exit status: 4"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469013#M7082</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;There might be possibility that those modular input failed once, but next time it ran successfully. To check latest status of all modular inputs, please use below query and look at &lt;CODE&gt;exit_status&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/admin/inputstatus/ModularInputs:modular%20input%20commands splunk_server=local count=0 
| append [| rest /services/admin/inputstatus/ExecProcessor:exec%20commands splunk_server=local count=0] 
| fields inputs*
| transpose
| rex field=column "inputs(?&amp;lt;script&amp;gt;\S+)(?:\s\((?&amp;lt;stanza&amp;gt;[^\(]+)\))?\.(?&amp;lt;key&amp;gt;(exit status description)|(time closed)|(time opened))"
| eval value=coalesce('row 1', 'row 2'), stanza=coalesce(stanza, "default"), started=if(key=="time opened", value, started), stopped=if(key=="time closed", value, stopped)
| rex field=value "exited\s+with\s+code\s+(?&amp;lt;exit_status&amp;gt;\d+)"
| stats first(started) as started, first(stopped) as stopped, first(exit_status) as exit_status by script, stanza
| eval errmsg=case(exit_status=="0", null(), isnotnull(exit_status), "A script exited abnormally with exit status: "+exit_status, isnull(started) or isnotnull(stopped), "A script is in an unknown state"), ignore=if(`script_error_msg_ignore`, 1, 0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is schedule search &lt;CODE&gt;Audit - Script Errors&lt;/CODE&gt; in SA_Utils app which run at every hour and check whether &lt;CODE&gt;errmsg&lt;/CODE&gt; is not null and ignore not equal to 0 in above search output then it will fire custom alert action which will write error message in Splunk Web top right corner under Messages. &lt;/P&gt;

&lt;P&gt;If one or more modular inputs failed once and &lt;CODE&gt;Audit - Script Errors&lt;/CODE&gt; ingested data in Messages and next time if Modular input works fine then older messages under &lt;CODE&gt;Messages&lt;/CODE&gt; in Splunk Web will not be deleted automatically and you need to delete it manually. So you need to check whether modular inputs failing continously? If yes then you can check why script is failing in &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/threat_intelligence_manager.log&lt;/CODE&gt; and &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/threatlist.log&lt;/CODE&gt; on Search Head.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 10:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469013#M7082</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-08-30T10:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Health Check: msg="A script exited abnormally with exit status: 4"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469014#M7083</link>
      <description>&lt;P&gt;Thanks for the assist, @harsmarvania57. Turned out to be a temporary issue with our Anomali feed. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 16:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Health-Check-msg-quot-A-script-exited-abnormally-with-exit/m-p/469014#M7083</guid>
      <dc:creator>dillardo_2</dc:creator>
      <dc:date>2019-09-09T16:41:44Z</dc:date>
    </item>
  </channel>
</rss>

