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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...