Splunk Search

How to calculate the value of row for every column and fetch the result in table?

marisstella
Explorer

I want calculate the row values of every column by error message...
I did
| Stats count(host) values(host) values(functionality) count(functionality) values (loan_num) by error_message

I'm just getting host count as 90
If i run the query sperately , like.. | stats count(hostcount) by hostvalues
It is showing all the values in their respective columns. Let's if the host are like hosta-20 host-30 hostc-40

so i want to fetch individual details in the same above columns by error_message

0 Karma

to4kawa
Ultra Champion
| stats count  values(loan_num) as loan_numby by host error_message functionality

hi, @marisstella
how about this?

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