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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...