Splunk Search

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

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

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

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

Motivator

HI

Ok cool

Cheers

0 Karma