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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...