Monitoring Splunk

CPU Pie Chart

jlaigo2
Path Finder

Have been trying to get a pie chart that reps the cpu usage. IE the following log format.
Any one have a clue if I can create a pie chart with a multikv fields?

CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
avg 0.74 8.0% 2.8% 11.8% 77.4% 0.0% 0.0% 0.0% 0.0%

Tags (1)
1 Solution

Ayn
Legend

Assuming you have the fields extracted, you can use transpose to get a chart formatted in a way that can be used for a pie chart. Since a pie chart doesn't deal with time-series data, it will use only the first row of the table it's supplied with. It's cleaner to add | head 1 to the search to show explicitly what data is used for the pie chart though.

<yourbasesearch> | head 1 | table USER NICE SYS IDLE BLOCK SWAIT INTR SSYS | transpose

View solution in original post

jlaigo2
Path Finder

Works perfect thanks for the help:)

0 Karma

Ayn
Legend

Assuming you have the fields extracted, you can use transpose to get a chart formatted in a way that can be used for a pie chart. Since a pie chart doesn't deal with time-series data, it will use only the first row of the table it's supplied with. It's cleaner to add | head 1 to the search to show explicitly what data is used for the pie chart though.

<yourbasesearch> | head 1 | table USER NICE SYS IDLE BLOCK SWAIT INTR SSYS | transpose
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...