Splunk Search

How to display host types in Y axis and X axis chart?

jayachandrank
Explorer

I have different host types (like SC, RC and etc) and its different version(18.1, 19, 19.1 and etc). I am trying to display host types in Y axis and respective Version in X axis. Tried using stats command but couldn't get what i want. Your thoughts pls?

0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

Hello @jayachandrank,
Can you use chart instead of stats? Something like...

| chart count by host_types, version

Replace host_types with the field you want to display on Y-axis and version with the field you want to display on X-axis. Replace count by whatsoever operation you want.

Hope this helps!!!

View solution in original post

0 Karma

woodcock
Esteemed Legend
0 Karma

niketn
Legend

@jayachandrank would it be possible to add a mock screenshot to your question? Also post what is your current query and output.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

mrunals
Path Finder

I think you do want chart but you have to do the OVER and BY splitting

| chart count over version by types

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Hello @jayachandrank,
Can you use chart instead of stats? Something like...

| chart count by host_types, version

Replace host_types with the field you want to display on Y-axis and version with the field you want to display on X-axis. Replace count by whatsoever operation you want.

Hope this helps!!!

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