Splunk Dev

Why does REST API call Python script fail?

olivier797
Loves-to-Learn

Hi 

I  use REST API  send search cmd to Splunk  and get search result and work normally

but when I send "| script python mypython" by REST API ,  "mypython" is not working

 I am sure "mypython" is setting to custom command and  "| script python mypython" is ok when I execute by myself  , REST API account is admin

Please help to solve this problem , thanks

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...