Installation

How to create 2 pie charts on license usage by index, one chart for production indexes and another for non-production indexes?

athorat
Communicator

Hi

We are using a search which we got from Answers to calculate license usage:

index=_internal source=*license_usage.log* type=Usage | timechart span=1d sum(b) as bytes | eval GB = round(bytes/1024/1024/1024,5) | fields _time GB

There is field called idx which gives the list of indexes in Splunk.

How do I create a pie chart for indexes which start with "np_" which are the non prod indexes eg : np_Webserver and another pie chart for all the prod indexes?

Labels (1)
0 Karma

maciep
Champion

So you just want to create two pie charts - one for prod indexes and one for non-prod? And the slices would be actual indexes based on how much was indexed?

If so maybe something like these:

Non-prod

index=_internal source=*license_usage.log* type=Usage idx=np_* | stats sum(b) as bytes by idx | eval GB = round(bytes/1024/1024/1024,5) | fields idx GB

Prod

index=_internal source=*license_usage.log* type=Usage idx!=np_* | stats sum(b) as bytes by idx | eval GB = round(bytes/1024/1024/1024,5) | fields idx GB
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...