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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...