All Apps and Add-ons

Two Types of calls in Visualization

skoelpin
SplunkTrust
SplunkTrust

I have 2 different events which have 'CalculateTax' and 'DeliverySchedule'. The CalculateTax event appears ~ 7,000 times daily while DeliverySchedule appears about ~3,000 times daily. I want to create a visualization (pie chart) to see the distribution between the 2 calls. The problem I'm facing is that I can only get 1 type to appear in the visualization. It is summing both CalculateTax and DeliverySchedule into one and showing the results. How do I break them up and have a color coded legend associated with each call?

My Query:

index=uv "CalculateTax*" AND "getdelivery*" | transaction maxevents=2 startswith="*Request" endswith="*Response" | timechart count

0 Karma
1 Solution

skoelpin
SplunkTrust
SplunkTrust

I ended up writing a regex to capture the calls (delivery schedule and calculate tax) and piped it to the TOP command. This gave me the distribution of calls I was looking for

My Query:

index=uv Calls="*" | top Calls

View solution in original post

0 Karma

skoelpin
SplunkTrust
SplunkTrust

I ended up writing a regex to capture the calls (delivery schedule and calculate tax) and piped it to the TOP command. This gave me the distribution of calls I was looking for

My Query:

index=uv Calls="*" | top Calls

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, ...