<?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: Error when I run custom Python script from one server to another sever using cURL (Search Factory: Unknown search command) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385697#M69274</link>
    <description>&lt;P&gt;Again. So poor support here...&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 08:27:06 GMT</pubDate>
    <dc:creator>highsplunker</dc:creator>
    <dc:date>2019-05-28T08:27:06Z</dc:date>
    <item>
      <title>Error when I run custom Python script from one server to another sever using cURL (Search Factory: Unknown search command)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385695#M69272</link>
      <description>&lt;P&gt;Error when I run custom Python script from one server to another sever using cURL.&lt;BR /&gt;
Error message in the CLI is this:&lt;BR /&gt;
&lt;STRONG&gt;&lt;EM&gt;"Search Factory: Unknown search command"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Why this &lt;STRONG&gt;does not work&lt;/STRONG&gt; from a Linux myServer2?&lt;BR /&gt;
curl -k -u 'myUser:myPwd' &lt;A href="https://myServer1:8089/services/search/jobs/export" target="_blank"&gt;https://myServer1:8089/services/search/jobs/export&lt;/A&gt; -d search=" | makeresults | myScript " -d output_mode=csv&lt;/P&gt;

&lt;P&gt;But &lt;STRONG&gt;OK&lt;/STRONG&gt; for search = " | makeresults | eval myVal=777 "&lt;BR /&gt;
And &lt;STRONG&gt;OK&lt;/STRONG&gt; for search = " | makeresults | sendemail to=\"&lt;A href="mailto:myMail@myCompany.com" target="_blank"&gt;myMail@myCompany.com&lt;/A&gt;\" subject=\"test_from_cli\" "&lt;BR /&gt;
And &lt;STRONG&gt;OK&lt;/STRONG&gt; for myScript if I run it from Splunk search box from myServer1 itself.&lt;/P&gt;

&lt;P&gt;Splunk Enterprise version 6.5.2&lt;/P&gt;

&lt;P&gt;The commands.conf:&lt;BR /&gt;
[myScript]&lt;BR /&gt;
filename = myScript.py&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385695#M69272</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-09-30T00:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when I run custom Python script from one server to another sever using cURL (Search Factory: Unknown search command)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385696#M69273</link>
      <description>&lt;P&gt;I saw this issue &lt;A href="https://answers.splunk.com/answers/521046/can-rest-api-be-used-to-execute-a-python-script-on.html?childToView=747914#answer-747914"&gt;https://answers.splunk.com/answers/521046/can-rest-api-be-used-to-execute-a-python-script-on.html?childToView=747914#answer-747914&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But it does not help.&lt;/P&gt;

&lt;P&gt;And the problem remains if myServer1 == myServer2.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385696#M69273</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2019-05-23T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when I run custom Python script from one server to another sever using cURL (Search Factory: Unknown search command)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385697#M69274</link>
      <description>&lt;P&gt;Again. So poor support here...&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 08:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385697#M69274</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2019-05-28T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when I run custom Python script from one server to another sever using cURL (Search Factory: Unknown search command)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385698#M69275</link>
      <description>&lt;P&gt;SOLVED. OK.&lt;BR /&gt;
OMG. Again it's about .../local.meta file. Hate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I needed simply to add this stanza:&lt;/P&gt;

&lt;P&gt;[commands/mySrcipt]&lt;BR /&gt;
access = read : [ * ], write : [ admin, power ]&lt;BR /&gt;
export = system&lt;BR /&gt;
owner = myUsername&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 09:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-when-I-run-custom-Python-script-from-one-server-to-another/m-p/385698#M69275</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2019-05-28T09:06:13Z</dc:date>
    </item>
  </channel>
</rss>

