Splunk Search

How to create a Pie Chart of particular events as percentage of all events?

ForeverNoob2
Engager

Hi. I am new to Splunk. I want to create a Pie Chart that consists of a particular type of event as a percentage of all events.

For example, all events that contain the word Linux, i would like to represent as a percentage of total events.

What would the search query be for this?

Thank you.

Labels (2)
Tags (1)
0 Karma
1 Solution

tscroggins
Influencer

@ForeverNoob2 

Pie charts only require two fields: a category and a count.

E.g.:

*
| eval os=if(like(_raw, "%Linux%"), "Linux", "Other")
| stats count by os

View solution in original post

tscroggins
Influencer

@ForeverNoob2 

Pie charts only require two fields: a category and a count.

E.g.:

*
| eval os=if(like(_raw, "%Linux%"), "Linux", "Other")
| stats count by os

ForeverNoob2
Engager

Super. Thank you.

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