Refine your search:

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?

asked 14 Jan '10, 19:02

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%


One Answer:

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.

link

answered 14 Jan '10, 19:08

gkanapathy's gravatar image

gkanapathy ♦
26.4k1622
accept rate: 42%

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.

(15 Jan '10, 02:14) jrodman ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,089
×87
×7

Asked: 14 Jan '10, 19:02

Seen: 499 times

Last updated: 14 Jan '10, 19:08

Copyright © 2005-2012 Splunk, Inc. All rights reserved.