<?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: External search command exited unexpectedly with non-zero error code 1 in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/361643#M5881</link>
    <description>&lt;P&gt;Does this script run properly when used independently of Splunk?&lt;BR /&gt;
Does this script run properly when using the same account as Splunk?&lt;/P&gt;

&lt;P&gt;Splunk has its own copy of python which it will use to execute scripts. Does the Splunk python have the libraries that you need?&lt;/P&gt;

&lt;P&gt;Did you look at the search.log that was created when you tried to use this command?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 20:22:40 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2018-01-03T20:22:40Z</dc:date>
    <item>
      <title>Why did external search command exit unexpectedly with non-zero error code 1?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/361642#M5880</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I create a script whit python and i configure the commands.conf but appears the follow message: "External search command exited unexpectedly with non-zero error code 1"&lt;/P&gt;
&lt;P&gt;commands.conf&lt;BR /&gt;[sshprueba8]&lt;BR /&gt;chunked = true&lt;BR /&gt;filename = sshprueba8.py&lt;/P&gt;
&lt;P&gt;script&lt;/P&gt;
&lt;H1&gt;!/usr/bin/env python&lt;/H1&gt;
&lt;H1&gt;-&lt;EM&gt;- coding: utf-8 -&lt;/EM&gt;-&lt;/H1&gt;
&lt;P&gt;import paramiko&lt;BR /&gt;import sys&lt;BR /&gt;import time&lt;BR /&gt;HOST = "172.16.10.100"&lt;BR /&gt;USER = "admin"&lt;BR /&gt;PASS = "admin"&lt;BR /&gt;ITERATION = 1&lt;/P&gt;
&lt;H1&gt;f = open ('/Documents/Archivo de prueba.txt','w')&lt;/H1&gt;
&lt;P&gt;def fn():&lt;BR /&gt;client1=paramiko.SSHClient()&lt;BR /&gt;client1.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;BR /&gt;client1.connect(HOST,username=USER,password=PASS)&lt;BR /&gt;stdin, stdout, stderr = client1.exec_command('show ip interface brief')&lt;BR /&gt;saveoutput = open("/Users/RicardoMedina/Documents/Archivo de prueba.txt", "a")&lt;BR /&gt;saveoutput.write(stdout.read())&lt;BR /&gt;print stdout.read()&lt;BR /&gt;fn()&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/361642#M5880</guid>
      <dc:creator>medveleyenet</dc:creator>
      <dc:date>2023-05-08T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: External search command exited unexpectedly with non-zero error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/361643#M5881</link>
      <description>&lt;P&gt;Does this script run properly when used independently of Splunk?&lt;BR /&gt;
Does this script run properly when using the same account as Splunk?&lt;/P&gt;

&lt;P&gt;Splunk has its own copy of python which it will use to execute scripts. Does the Splunk python have the libraries that you need?&lt;/P&gt;

&lt;P&gt;Did you look at the search.log that was created when you tried to use this command?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/361643#M5881</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2018-01-03T20:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: External search command exited unexpectedly with non-zero error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/642536#M11040</link>
      <description>&lt;P&gt;Solution is in this thread&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Tool-kit-Error-in-fit-command-External/m-p/408103" target="_blank"&gt;https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Machine-Learning-Tool-kit-Error-in-fit-command-External/m-p/408103&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-did-external-search-command-exit-unexpectedly-with-non-zero/m-p/642536#M11040</guid>
      <dc:creator>splunkoptimus</dc:creator>
      <dc:date>2023-05-08T13:43:46Z</dc:date>
    </item>
  </channel>
</rss>

