Splunk Search

How do I write a search to get a table of metrics to show the count of different Markets by Site?

rameshlpatel
Communicator

Hi,

I have a requirement where I want to display a metrics table. Vertically, I want to show different sites like (1,2,3, 4 etc) and horizontally, I want to show different markets (Residential, Commercial etc) So I want to show site & market vise count.

Site Commercial Residential
1 10 24
2 23 34
3 24 54

How can I write a search to achieve that?

In my events, I have Site detail and market detail information.

Tags (3)
0 Karma
1 Solution

aljohnson_splun
Splunk Employee
Splunk Employee
... | chart sum(Commericial) as CommericalSum, sum(Residential) as ResidentialSum by Site

View solution in original post

aljohnson_splun
Splunk Employee
Splunk Employee
... | chart sum(Commericial) as CommericalSum, sum(Residential) as ResidentialSum by Site

rameshlpatel
Communicator

Thanks Its really Helpful.

0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

Can you mark the answer as accepted ? Otherwise this is left as an "unanswered question".

0 Karma

ppablo
Retired

done and upvoted 🙂

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...