Dashboards & Visualizations

What is the best way to calculate the percentage of a query and transform it into a pie chart or two single value charts side by side?

Navitas28
New Member

What is the best way to calculate the percentage and transform it into a pie chart or two single value charts side by side :

  Condition for success => message=Upload successful
  Condition for error = >  [ERROR]

Please help I am not able to figure out the correct way?
What I used to generate a single chart is very wrong I have to append for queries together to generate a result.

0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @Navitas28

Did the answer below solve your problem? If so, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!

0 Karma

jlelli
Path Finder

If the events are in the same index you could simply add an OR in the search string and then extract the values you need with a rex extraction; something like:

search "upload succesful" OR  "[ERROR]"| rex "\> (?<result>.*)" | top result
0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...