Splunk Search

Difference of values ​​using single value with percentage

leandromatperei
Path Finder

I would like to put together a graph with the difference of values ​​as a percentage, so I can use the single value and if it is above 70% it would turn red.

 

 

 

index="teste" "ProcessInboundEmail" | timechart span=10m dc(id_email) as ProcessInboundEmail
| appendcols  [search index="teste""submitInboundEmail" ended | timechart span=10m dc(id_email) as submitInboundEmail]
| eval diff =  ProcessInboundEmail - submitInboundEmail | eval diff=if(ProcessInboundEmail< submitInboundEmail, diff * -1, diff)

 

 

 

 

can you help me?

 

Labels (1)
Tags (1)
0 Karma
1 Solution

to4kawa
Ultra Champion

index="teste" "ProcessInboundEmail" | timechart span=10m dc(id_email) as ProcessInboundEmail
| appendcols [search index="teste""submitInboundEmail" ended | timechart span=10m dc(id_email) as submitInboundEmail]
| eval perc = round(abs(ProcessInboundEmail - submitInboundEmail)/(ProcessInboundEmail + submitInboundEmail)*100,2) | table _time perc

 

and modify FORMAT

View solution in original post

0 Karma

to4kawa
Ultra Champion

index="teste" "ProcessInboundEmail" | timechart span=10m dc(id_email) as ProcessInboundEmail
| appendcols [search index="teste""submitInboundEmail" ended | timechart span=10m dc(id_email) as submitInboundEmail]
| eval perc = round(abs(ProcessInboundEmail - submitInboundEmail)/(ProcessInboundEmail + submitInboundEmail)*100,2) | table _time perc

 

and modify FORMAT

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...