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!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...