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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...