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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...