Splunk Search

How to subtract one field value from another field value for each event?

sim_tcr
Communicator

Hello,

We have two fields: elapsedMs and backendServiceMillis. Both have only numeric values.
How can we display a new field which has the result of elapsedMs - backendServiceMillis?

Thanks,
Simon Mandy

Tags (2)
0 Karma
1 Solution

sim_tcr
Communicator

I figured out myself.
| eval difference = elapsedMs - backendServiceMillis | table elapsedMs backendServiceMillis difference

View solution in original post

sim_tcr
Communicator

I figured out myself.
| eval difference = elapsedMs - backendServiceMillis | table elapsedMs backendServiceMillis difference

Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...