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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...