Dashboards & Visualizations

Plotting % on yaxis

vikramnpanchal
Engager

Need to plot line chart below table "Max Busy Rate by processor" and want to show % values on yaxis and time on x-axis.

1 Date/Time Max Busy Rate Processor
2 10/29/2012 11:00 12% CHA-1H-3
3 10/29/2012 11:00 1% CHA-1H-2
4 10/29/2012 11:00 17% CHA-1H-1
5 10/29/2012 11:00 9% CHA-1H-0
6 10/29/2012 11:00 27% CHA-1H-3
7 10/29/2012 11:00 3% CHA-1H-2
8 10/29/2012 11:00 15% CHA-1H-1
9 10/29/2012 11:00 14% CHA-1H-0
10 10/29/2012 11:00 15% CHA-1H-3

Tags (1)
0 Karma
1 Solution

lguinn2
Legend

One of the tricks to charting is that Splunk requires one of the chart/timechart functions for the y-axis. In the example data above, you could use variety of different functions - I will use max

Second, you need to know the field names for your data. For this example, I will assume that Splunk has correctly identified the date/time of the event, and that you also have fields named busy and processor

yoursearchhere
| eval busy = tonumber(replace(busy,"%",""))
| timechart span=1h max(busy) by processor

View solution in original post

lguinn2
Legend

One of the tricks to charting is that Splunk requires one of the chart/timechart functions for the y-axis. In the example data above, you could use variety of different functions - I will use max

Second, you need to know the field names for your data. For this example, I will assume that Splunk has correctly identified the date/time of the event, and that you also have fields named busy and processor

yoursearchhere
| eval busy = tonumber(replace(busy,"%",""))
| timechart span=1h max(busy) by processor
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...