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!

The Payment Operations Wake-Up Call: Why Financial Institutions Can't Afford ...

The same scenario plays out across financial institutions daily. A payment system fails at 11:30 AM on a busy ...

Make Your Case: A Ready-to-Send Letter for Getting Approval to Attend .conf25

Hello Splunkers, Want to attend .conf25 in Boston this year but not sure how to convince your manager? We've ...

Community Spotlight: A Splunk Expert's Journey

In the world of data analytics, some journeys leave a lasting impact not only on the individual but on the ...