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 | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...