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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...