Dashboards & Visualizations

In a dashboard panel, how would I get the result count to show (with paging)?

the_wolverine
Champion

I have a table displayed in a dashboard panel with pagination enabled. I don't see any way to get the results count to display.

0 Karma

sideview
SplunkTrust
SplunkTrust

If this is the Simple XML, there does not seem to be any way, at least not in a dashboard panel.

If you're using the Advanced XML, but still just with core Splunk modules, the you would use either the ResultsHeader module, which would look like this

<module name="ResultsHeader">
  <param name="entityLabel">results</param>
  <param name="entityLabelSingular">result</param>
  <param name="entityName">results</param>
</module>

Or you would use the SimpleResultsHeader module, which has a special (%(count)s) syntax for embedding the number of results into the custom header text.

<module name="SimpleResultsHeader">
  <param name="entityName">results</param>
  <param name="headerFormat">Sources (%(count)s)</param>
</module>

and if you're using Sideview Utils it's a relatively simple matter of using $results.count$ anywhere in the HTML module. I also used the $search.timeRange.label$ key in this example, which will print out things like "in the last 24 hours" or "during January 2013" as appropriate to match the timerange used.

<module name="HTML">
  <param name="html"><![CDATA[
    <h3>$results.count$ results found $search.timeRange.label$</h3>
  ]]></param>
</module>

sideview
SplunkTrust
SplunkTrust

Oh. If you have to account for postprocess it's a little different.

What you do is this:

<module name="PostProcess">
  <param name="search"> your postprocess here</param>
  <module name="PostProcess">
    <param name="search">$postProcess$ | stats count</param>
    <module name="HTML">
      <param name="html">$results[0].count$ plus whatever html tags</param>
    </module>
    <module name="Pager">
      <module name="Table"/>
    </module>
  </module>
</module>
0 Karma

0waste_splunk
Communicator

i have 3 panel. it will show $results.count$ all the same. but i know all the panel has different number of rows in the result. how can i show different and correct total row count for each panel.
FYI: i am using sideview utils
i have panel like this:
HTML->PostProcess->Pager->SimpleResultsTable
for all three panel.

0 Karma
Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...