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!

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

Introducing the Splunk Community Dashboard Challenge!

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