Dashboards & Visualizations

Get number of trellis structures from job

aohls
Contributor

I have a set of trellis items that I want to show in a dashboard. With the results though I want to set the height dynamically to show all the trellis structures correctly. Is there a way I can get the count returned from the job as to how many trellis' the job created?

Labels (3)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You can get the result count of the search in a <done> clause of your dashboard and set a token accordingly, e.g.

<done>
  <set token="results_count">$job.resultCount$</set>
</done>

but whether that corresponds to what you mean by the trellis item count will depend on your trellis aggregations.

If it doesn't, then you could make your search  a base search, then have another hidden panel using that base search, which then creates a single value, which represents the count you want and then use a similar <done> clause to set a token from that search, which you can then use, e.g.

<done>
  <set token="results_count">$result.trellisCount$</set>
</done>

where trellisCount is the column containing the count you need.

Hopefully this helps

 

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 ...