Splunk Search

Finalize action for searchscript?

jrodman
Splunk Employee
Splunk Employee

I wrote a search operator that takes actions external to splunk. It has to take an action to 'complete' its operations. How can my search operator know when it is done being called, given that it could be called any number of times?

The search operator is currently 'streaming = true' since it could be handling extremely large data volumes. Can this perhaps be set to false for this purpose?

Tags (3)

gkanapathy
Splunk Employee
Splunk Employee

I don't know the answer to whether it can be told whether it is "complete". (And with 4.1 real-time search, it may actually never be complete.)

However, setting "streaming = false" will simply limit your script to being called just once with at most "maxinputs" results.

jrodman
Splunk Employee
Splunk Employee

Never completing (endless input) would be fine. The data would keep being quantized acceptably. However, the last unfinished quanta must be processed somehow. Only handling maxinputs is not really acceptable.

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...