Dashboards & Visualizations

python script execution from search template

assadabbas
Loves-to-Learn Lots

My app is working fine with advanced xml but as per requirements of splunk 8.0 I have to shift to simple xml. This search works fine 

<searchTemplate>| script base64 __EXECUTE__ "$input$" "$operation$"</searchTemplate>

where base64 refers to a python script path and it takes two arguments as input e.g "abc" "encode".  Output is displayed using

<searchPostProcess> table answer | rename answer as Answer</searchPostProcess>

If i replace <searchTemplate> and <searchPostProcess> with just <search>, the script is not executed and no results are displayed.

Please help me figuring out how to accomplish get the desired output with <search>.

Labels (1)
0 Karma

assadabbas
Loves-to-Learn Lots

I have also tried using <search><query> as well but it did not work

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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