Splunk Search

Taking Count of Response Codes by Endpoints with Endpoints listed as rows and Response Codes listed as columns?



I am new to Splunk. Please help me write a query to get count of response by ServcieName(displayed in rows) and by response code. The response code and Service name are dynamic.


Service        201              200            400       401        500     503
ServiceA         2900         1023          0              12            3         6
ServiceB         1649         677             1              1                 3         6

Labels (2)
0 Karma


This should get you what you want.

{your base search here}
| chart useother=f limit=0 count by serviceName, responseCode
0 Karma


Did this get you what you were looking for? If so, please mark the solution as accepted.

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk Cloud Platform 9.1.2308?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2308! Analysts can ...

Index This | Why do they call it hyper text?

November 2023 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

State of Splunk Careers 2023: Career Resilience and the Continued Value of Splunk

For the past three years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...