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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...