<?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 Why am I getting this error &amp;quot;External search command 'File_Move1' returned error code 1&amp;quot; every time I run my python script? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351558#M5598</link>
    <description>&lt;P&gt;• I am trying to execute python script File_Move1 using the search query |script File_Move1  but received the error below:&lt;BR /&gt;
&lt;CODE&gt;External search command 'File_Move1' returned error code 1&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;• Please find my &lt;CODE&gt;commands.conf&lt;/CODE&gt; details below in my &lt;CODE&gt;C:\Program Files\Splunk\etc\system\local&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[File_Move1]
chunked = true
filename = File_Move1.py
type = python
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;• I have placed the file in bin directory of &lt;CODE&gt;C:\Program Files\Splunk\etc\apps\search\bin\scripts&lt;/CODE&gt; and &lt;CODE&gt;C:\Program Files\Splunk\bin\scripts&lt;/CODE&gt; but still I receive that error &lt;BR /&gt;
• I was able to execute the same script using Splunk cmd python &lt;CODE&gt;File_Move.py&lt;/CODE&gt; using command prompt.&lt;/P&gt;

&lt;P&gt;I kindly request you to look into it and guide me how to get rid of that error. I really appreciate your help on this.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:56:15 GMT</pubDate>
    <dc:creator>Vipun</dc:creator>
    <dc:date>2020-09-29T17:56:15Z</dc:date>
    <item>
      <title>Why am I getting this error "External search command 'File_Move1' returned error code 1" every time I run my python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351558#M5598</link>
      <description>&lt;P&gt;• I am trying to execute python script File_Move1 using the search query |script File_Move1  but received the error below:&lt;BR /&gt;
&lt;CODE&gt;External search command 'File_Move1' returned error code 1&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;• Please find my &lt;CODE&gt;commands.conf&lt;/CODE&gt; details below in my &lt;CODE&gt;C:\Program Files\Splunk\etc\system\local&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[File_Move1]
chunked = true
filename = File_Move1.py
type = python
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;• I have placed the file in bin directory of &lt;CODE&gt;C:\Program Files\Splunk\etc\apps\search\bin\scripts&lt;/CODE&gt; and &lt;CODE&gt;C:\Program Files\Splunk\bin\scripts&lt;/CODE&gt; but still I receive that error &lt;BR /&gt;
• I was able to execute the same script using Splunk cmd python &lt;CODE&gt;File_Move.py&lt;/CODE&gt; using command prompt.&lt;/P&gt;

&lt;P&gt;I kindly request you to look into it and guide me how to get rid of that error. I really appreciate your help on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351558#M5598</guid>
      <dc:creator>Vipun</dc:creator>
      <dc:date>2020-09-29T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error "External search command 'File_Move1' returned error code 1" every time I run my python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351559#M5599</link>
      <description>&lt;P&gt;Try running below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; search query&amp;gt;| script python File_Move1.py 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer:&lt;A href="https://answers.splunk.com/answers/62473/how-to-execute-external-script-to-manipulate-file-from-search-command.html"&gt;https://answers.splunk.com/answers/62473/how-to-execute-external-script-to-manipulate-file-from-search-command.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351559#M5599</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-31T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error "External search command 'File_Move1' returned error code 1" every time I run my python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351560#M5600</link>
      <description>&lt;P&gt;Hi 493669,&lt;/P&gt;

&lt;P&gt;I have followed that earlier but still, I get the same error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" | script python File_Move1.py 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" | script python File_Move1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;⚠    External search command 'File_Move1' returned error code 1&lt;/CODE&gt;. &lt;BR /&gt;
Please suggest any answers. Thank you for the help!!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351560#M5600</guid>
      <dc:creator>Vipun</dc:creator>
      <dc:date>2018-01-31T18:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error "External search command 'File_Move1' returned error code 1" every time I run my python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351561#M5601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you for the help on this.&lt;/P&gt;

&lt;P&gt;I have tried index="test" | script python File_Move1 or index="test" | script python File_Move1.py &lt;BR /&gt;
earlier but still no luck. Could you please advise with any other fix.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351561#M5601</guid>
      <dc:creator>Vipun</dc:creator>
      <dc:date>2020-09-29T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error "External search command 'File_Move1' returned error code 1" every time I run my python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351562#M5602</link>
      <description>&lt;P&gt;hi Vipun. i have the same error message -- i'm playing with Splunk REST API functionality now. i think you have to dig the script itself first.&lt;BR /&gt;
in my case there was simply a syntactic error in my python code.&lt;BR /&gt;
don't give up, good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-this-error-quot-External-search-command-File/m-p/351562#M5602</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2019-07-24T09:25:18Z</dc:date>
    </item>
  </channel>
</rss>

