Splunk Search

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

NallaAyee
Observer

Hello,

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.

eg:

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

fredclown
Builder

This should get you what you want.

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

fredclown
Builder

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

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...