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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...