Dashboards & Visualizations

How to set a Token when the dashboard is 100% loaded

robertlynch2020
Motivator

hi

I need to be able to know when a dashboard is 100% completed, how can i get a token for this?

I had an idea of doing something like this after each search.

    <done>
            <condition match="'job.resultCount'>0">

               <set token="PAGE_LOADED1">LOADED</set>
            </condition>

          </done>

However this is a very manual way of doing it (PAGE_LOADED1 + PAGE_LOADED2 + PAGE_LOADED3 > 0 etc..), i was hoping for an easy peace of code that i can put at the top of each dashboard.

Thanks
Robert

Tags (1)
0 Karma

wmyersas
Builder

Use the <done> tag inside your searches:

<search>
    <done>
        <set token="thispanelstoken">done</set>
    </done>
</search>

Relying on $job.resultCount$>0 is not a good practice: what happens when the search returns no values? Your condition would fail, but it would be "done".

What are you trying to do with these "completed" tokens?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...