Splunk Search

display result count in form panel

rzhang520
Engager

Hi,

I have a form has field inputs and a panel to display the search results in a table. Our users are complainting about they don't know how many events returned by the search. And I can't find good way to display event count in the panel. Any ideas?

Thanks.

Tags (3)
0 Karma
1 Solution

rzhang520
Engager

Thank you for the help.

0 Karma

somesoni2
Revered Legend

There nothing seems to be available for simple xml. There could be some workarounds like using searchTemplate and searchPostProcess and adding a single value module to show count. But mostly you'll end up writing extra search just to show count.

0 Karma

rzhang520
Engager

I am using Simple Xml, so there is no way to do it?

0 Karma

Naren26
Path Finder

You can achieve this with <done> tag, like this:

<done>
           <eval token="resultcount_tok">$job.resultCount$</eval>
 </done>

And use it anywhere in your dashboard panel with "$resultcount_tok$"

0 Karma

lukejadamec
Super Champion

You can use |stats count _time AS EventCount

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