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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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