Dashboards & Visualizations

Charting question

jaywv6299
New Member

I have a log file that comes in and has something that looks like

cn=ABC TotalNo=36,availableNo=21,productionNo=15

another line

cn=DEF TotalNo=21,availableNo=15,productionNo=6

I would like to create a pie chart for all available cn= (could be 10 productnames could be 100) and have the pie chart be TotalNo and availableNo and productionNo be a portion of that PIE chart.

Also would like to make it so that if availableNo is less that 3 that there is an alert or change in chart colors to red.

0 Karma

kristian_kolb
Ultra Champion

Even though I haven't tried to dynamically create an arbitrary number of dashboard panels based on search results, I think it might be hard/impossible (I might be wrong though). It is probably simpler if you can live with a bar or column chart like so;

your search for events | chart first(availableNo) as Available first(productionNo) as Production by cn

Then you click the little chart icon called "Results Chart", and alter the formatting options by selecting bar or column chart, and set "Stack mode" to "Stacked" and "Multi-series mode" to "Combined". The layout can be a bit cluttered if you have more than 30 bars/columns.

For the alerting part, you should probably read the Alerting manual

For the chart changing colour.. dunno... maybe in the Visualizaion Manual

Hope this helps,

k

0 Karma
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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Data Drivers: How We're Streaming Real-Time F1 Telemetry Directly into Splunk ...

Data Drivers: Every Lap Tells a Story The Spectacle Two F1 racing sims go head-to-head on the .conf26 show ...

Data Management Digest – July 2026

  Welcome to the July 2026 edition of Data Management Digest! As your trusted partner in data innovation, the ...