Splunk Search

Can i know the results retrieved for each search query ?

rakesh_498115
Motivator

Hi.

I have search query that query returns certains fields . these information will vary according to the realtime data input.Now my question can i search know the search results count for each and every search query..

i.e in SQL for every search we will have some thing like 14 records found like that..can i know the count for each search results along with my fields..

sample output::

ResultsRetrived Field1 Field2
4 a g
4 g e
4 h r
4 q r

Here 4 is the total no results that are retrived for my search query ?? how can i do this ..please help..

thanx

Tags (1)
0 Karma

gargit
New Member

Did you find solution for this ? - Gargi

0 Karma

rakesh_498115
Motivator

Yeah Gargi ..In the HTML Module ..if we use $results.count$ it will give us the count of the search results..

0 Karma
Get Updates on the Splunk Community!

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

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...