Splunk Search

Count within count

sauravdhungel
Engager

 I have a data and created a table like this:

EligibilityCount
01-Country31

 

Now I would like to see how those country are counted to 31 . The output would be like this:

Countriescount
GERMANY4
MALAWI10
SERBIA6
SRI LANKA5
SWAZILAND1
UKRAINE5

 

Any help will be greatly appreciated. Thank you

Labels (1)

ITWhisperer
SplunkTrust
SplunkTrust

Without knowing what your data looks like, assuming you already have a field called countries in your events:

| stats count by countries
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...