<?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 does REST API call Python script fail? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-REST-API-call-Python-script-fail/m-p/642106#M11038</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; use REST API&amp;nbsp; send search cmd to Splunk&amp;nbsp; and get search result and work normally&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;but&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;when I send "&lt;SPAN&gt;&lt;SPAN class=""&gt;| script python mypython" by REST API ,&amp;nbsp; "mypython" is not working&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;I am sure "mypython" is setting to&amp;nbsp;custom command and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;"| script python mypython" is ok when I execute by myself&amp;nbsp; , REST API account is admin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Please help to solve this problem , thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 13:54:25 GMT</pubDate>
    <dc:creator>olivier797</dc:creator>
    <dc:date>2023-05-03T13:54:25Z</dc:date>
    <item>
      <title>Why does REST API call Python script fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-REST-API-call-Python-script-fail/m-p/642106#M11038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; use REST API&amp;nbsp; send search cmd to Splunk&amp;nbsp; and get search result and work normally&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;but&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;when I send "&lt;SPAN&gt;&lt;SPAN class=""&gt;| script python mypython" by REST API ,&amp;nbsp; "mypython" is not working&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;I am sure "mypython" is setting to&amp;nbsp;custom command and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;"| script python mypython" is ok when I execute by myself&amp;nbsp; , REST API account is admin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Please help to solve this problem , thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-REST-API-call-Python-script-fail/m-p/642106#M11038</guid>
      <dc:creator>olivier797</dc:creator>
      <dc:date>2023-05-03T13:54:25Z</dc:date>
    </item>
  </channel>
</rss>

