<?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 Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/527897#M64079</link>
    <description>&lt;P&gt;Hi BigCosta&lt;/P&gt;&lt;P&gt;I am also getting the "&lt;SPAN&gt;Error in 'fit' command: External search command exited unexpectedly" error. I tried running&amp;nbsp;&lt;EM&gt;python -c "import numpy as np"&amp;nbsp;&lt;/EM&gt;in&amp;nbsp;&lt;EM&gt;/opt/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/bin,&amp;nbsp;&lt;/EM&gt;but I got the error message&amp;nbsp;&lt;EM&gt;ImportError: No module named numpy.&amp;nbsp;&lt;/EM&gt;Does this mean we don't even have numpy installed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are running Splunk 7.3.3,&amp;nbsp;Splunk Machine Learning Toolkit&amp;nbsp;4.5.0&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 12:03:27 GMT</pubDate>
    <dc:creator>BernardEAI</dc:creator>
    <dc:date>2020-11-04T12:03:27Z</dc:date>
    <item>
      <title>Where to fix Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408103#M49762</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I just installed the ML toolkit for Splunk and am running into the below error every time I go to the showcase and attempt to use one of the dashboards and create a "fit model".&lt;/P&gt;
&lt;P&gt;Error in 'fit' command: External search command exited unexpectedly.&lt;/P&gt;
&lt;P&gt;I've also tested the SPL search using the fit command and I get the same error.&lt;/P&gt;
&lt;P&gt;I've made sure to download Python for Scientific Computing Add-on specific to my OS (linux) prior to installing the ML toolkit and made sure that the permissions are all global.&lt;/P&gt;
&lt;P&gt;Splunkd.log is only show the below error message:&lt;BR /&gt;07-26-2019 14:39:01.121 -0400 ERROR ChunkedExternProcessor - EOF while attempting to read transport header&lt;BR /&gt;07-26-2019 14:39:01.121 -0400 ERROR ChunkedExternProcessor - Error in 'fit' command: External search command exited unexpectedly.&lt;/P&gt;
&lt;P&gt;Splunk version: 7.0.2&lt;/P&gt;
&lt;P&gt;Has anyone run into this issue before with this app, or maybe a different app with the same error? The fit command is essentially a python script and I've been combing through the code, but can't determine which line the EOF error is referencing.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 14:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408103#M49762</guid>
      <dc:creator>arlombar1</dc:creator>
      <dc:date>2023-05-08T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408104#M49763</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
I have the same problem. I researched the problem and found that the problem is in the &lt;STRONG&gt;numpy&lt;/STRONG&gt; module.&lt;BR /&gt;
The code of Python "&lt;CODE&gt;import numpy as np&lt;/CODE&gt;" causes "&lt;STRONG&gt;Illegal instruction (core dumped)&lt;/STRONG&gt;"&lt;BR /&gt;
You can check this by running the command:&lt;BR /&gt;
    /opt/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/bin/python -c "import numpy as np"&lt;/P&gt;

&lt;P&gt;You will see a lot of errors like "ERROR:root:code for hash xxxxx was not found." - that's okay.&lt;BR /&gt;
If you have &lt;STRONG&gt;no&lt;/STRONG&gt; problems with the "fit" command, then the last lines of the output will be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ValueError: unsupported hash type sha512
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have &lt;STRONG&gt;problems&lt;/STRONG&gt; with the "fit" command, then the last lines of the output will be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ValueError: unsupported hash type sha512
Illegal instruction (core dumped)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have not yet found why the &lt;STRONG&gt;numpy&lt;/STRONG&gt; module does not start...&lt;BR /&gt;
I have Splunk 7.3.2, Splunk_SA_Scientific_Python_linux_x86_64 1.4 and Splunk_ML_Toolkit 4.4.1&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408104#M49763</guid>
      <dc:creator>BigCosta</dc:creator>
      <dc:date>2020-09-30T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408105#M49764</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;
I found a solution to this problem. You need to update three Python packages that come as part of Splunk_SA_Scientific_Python_linux_x86_64 -- &lt;STRONG&gt;NumPy&lt;/STRONG&gt;, &lt;STRONG&gt;SciPy&lt;/STRONG&gt; and &lt;STRONG&gt;scikit_learn&lt;/STRONG&gt;&lt;BR /&gt;
To do this You need to do the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Download from Python software repository &lt;A href="https://pypi.org/" target="_blank"&gt;https://pypi.org/&lt;/A&gt; latest &lt;STRONG&gt;numpy&lt;/STRONG&gt;, &lt;STRONG&gt;scipy&lt;/STRONG&gt; and &lt;STRONG&gt;scikit_learn&lt;/STRONG&gt; packages (yum won't help because it downloads older versions)&lt;/P&gt;

&lt;P&gt;numpy-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl&lt;BR /&gt;
scipy-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl&lt;BR /&gt;
scikit_learn-0.20.4-cp27-cp27mu-manylinux1_x86_64.whl&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Install packages in system python&lt;/P&gt;

&lt;P&gt;pip install numpy-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl&lt;BR /&gt;
pip install scipy-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl&lt;BR /&gt;
pip install scikit_learn-0.20.4-cp27-cp27mu-manylinux1_x86_64.whl&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Make a backup of the original &lt;STRONG&gt;numpy&lt;/STRONG&gt;, &lt;STRONG&gt;scipy&lt;/STRONG&gt; and &lt;STRONG&gt;scikit_learn&lt;/STRONG&gt; packages located in Splunk_SA_Scientific_Python_linux_x86_64&lt;/P&gt;

&lt;P&gt;mv $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/numpy $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/numpy.orig&lt;BR /&gt;
mv $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/scipy $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/scipy.orig&lt;BR /&gt;
mv $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/sklearn $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/sklearn.orig&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Copy installed packages from system python to Splunk_SA_Scientific_Python_linux_x86_64&lt;/P&gt;

&lt;P&gt;cp -r /usr/lib64/python2.7/site-packages/numpy* -t $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages&lt;BR /&gt;
cp -r /usr/lib64/python2.7/site-packages/scipy* -t $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages&lt;BR /&gt;
cp -r /usr/lib64/python2.7/site-packages/sklearn -t $SPLUNK_HOME/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages&lt;BR /&gt;
All done, you can now run the search with the &lt;CODE&gt;fit&lt;/CODE&gt; command (Splunk reboot is not required)&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The &lt;STRONG&gt;numpy&lt;/STRONG&gt;, &lt;STRONG&gt;scipy&lt;/STRONG&gt; and &lt;STRONG&gt;scikit_learn&lt;/STRONG&gt; packages in system python are no longer needed and you can remove them with the &lt;CODE&gt;pip uninstall &amp;lt;package&amp;gt;&lt;/CODE&gt; command&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408105#M49764</guid>
      <dc:creator>BigCosta</dc:creator>
      <dc:date>2020-09-30T02:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408106#M49765</link>
      <description>&lt;P&gt;This happens also with Splunk 8 and python 3, but I do not tried this fix yet.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/408106#M49765</guid>
      <dc:creator>fsaporito</dc:creator>
      <dc:date>2019-11-12T10:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/520333#M63499</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/41403"&gt;@BigCosta&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have a problem similar to yours, were you able to address it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Emiliano&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 13:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/520333#M63499</guid>
      <dc:creator>eca</dc:creator>
      <dc:date>2020-09-18T13:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/520530#M63515</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Emiliano&lt;/SPAN&gt;!&lt;/P&gt;&lt;P&gt;Yes, i solved this problem.&lt;/P&gt;&lt;P&gt;Solution in my post in this thread from date&amp;nbsp;10-12-2019&amp;nbsp;08:41 PM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 01:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/520530#M63515</guid>
      <dc:creator>BigCosta</dc:creator>
      <dc:date>2020-09-21T01:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/527897#M64079</link>
      <description>&lt;P&gt;Hi BigCosta&lt;/P&gt;&lt;P&gt;I am also getting the "&lt;SPAN&gt;Error in 'fit' command: External search command exited unexpectedly" error. I tried running&amp;nbsp;&lt;EM&gt;python -c "import numpy as np"&amp;nbsp;&lt;/EM&gt;in&amp;nbsp;&lt;EM&gt;/opt/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/bin,&amp;nbsp;&lt;/EM&gt;but I got the error message&amp;nbsp;&lt;EM&gt;ImportError: No module named numpy.&amp;nbsp;&lt;/EM&gt;Does this mean we don't even have numpy installed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are running Splunk 7.3.3,&amp;nbsp;Splunk Machine Learning Toolkit&amp;nbsp;4.5.0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 12:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/527897#M64079</guid>
      <dc:creator>BernardEAI</dc:creator>
      <dc:date>2020-11-04T12:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/527912#M64081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225520"&gt;@BernardEAI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I solve the problem after install PSC 1.3 and fix some libraries problem on my Linux. On my Linux if I try to execute the command "openssl" I get some errors due to libraries not found. I fix the problem creating sym links to the right library with the right name. The version of MLTK is 4.5 also for me with Splunk 7.3.4.&lt;/P&gt;&lt;P&gt;Hope this help&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Emiliano&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/527912#M64081</guid>
      <dc:creator>eca</dc:creator>
      <dc:date>2020-11-04T13:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/531163#M64295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226459"&gt;@eca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tip on the PSC 1.3 - I installed this version and it solved the problem (without any other changes)! I'm very confused about why this is, and why there isn't better documentation on this.&lt;/P&gt;&lt;P&gt;Our current setup: Splunk&amp;nbsp;Version:7.3.3, MLTK&amp;nbsp;&lt;SPAN&gt;4.2.0 and PSC 1.3.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 13:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/531163#M64295</guid>
      <dc:creator>BernardEAI</dc:creator>
      <dc:date>2020-11-27T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Machine Learning Tool kit: Error in 'fit' command: External search command exited unexpectedly.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/642533#M79109</link>
      <description>&lt;P&gt;I had a similar problem, I resolved it by trying of the different versions of&amp;nbsp;Splunk_SA_Scientific_Python which were supposed to be compatible with the version of Splunk MLTK I was using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk MLTK v540 is fully compatible to Splunk SA Scientific Python linux x86 64 v310&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Where-to-fix-Splunk-Machine-Learning-Tool-kit-Error-in-fit/m-p/642533#M79109</guid>
      <dc:creator>splunkoptimus</dc:creator>
      <dc:date>2023-05-08T13:40:54Z</dc:date>
    </item>
  </channel>
</rss>

