Splunk Search

How to edit my stats search to display a bar chart?

kiran331
Builder

Hi

I have a data with fields OS and Name. I need to show the count and values of OS for Each Name like on X-axis all Names with bar graph showing OS and its count. Any suggestions?

Search I'm using:

base query.. | stats count(OS) values(OS) by Name

But it's not working as expected.

0 Karma
1 Solution

niketn
Legend

Try this

 base query.. 
| chart count over Name by OS
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

Try this

 base query.. 
| chart count over Name by OS
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...