Splunk Search

How do I get the eval token to wait for the set token to finish?

robertlynch2020
Motivator

Hi

Is there a way to get my eval token to wait for the full result.
I am setting a token time_selection_BUFFER.earliest from a complex query so it take 5 seconds, however the eval below it is not waiting on the result.
It looks like it is passing in the value $start$ to the token time_selection_BUFFER.earliest, before it is ready.
This is an issues as i am specifically working on not refreshing the token with a CASE statement.

So the questions, how do i get eval token to wait for set token to finish?

 <selection>

        <set token="time_selection_BUFFER.earliest">$start$</set>

          <eval token="time_selection.earliest">case($time_selection.earliest$ != $time_token.earliest$ ,$time_selection_BUFFER.earliest$,true(),$time_selection.earliest$)</eval>



        </selection>
1 Solution

woodcock
Esteemed Legend

You should be using the <done> setting (or is it <finalized> now?) which triggers when the search in a panel is DONE:

<done><eval token="time_selection_BUFFER.earliest">$start$</eval></done>

View solution in original post

woodcock
Esteemed Legend

You should be using the <done> setting (or is it <finalized> now?) which triggers when the search in a panel is DONE:

<done><eval token="time_selection_BUFFER.earliest">$start$</eval></done>

robertlynch2020
Motivator

HI

Ok cool

Cheers

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...