Splunk Search

How do i get average of the response times from the following sample ?data

chanukhya
Explorer

Hi Here is my sample data,

2016-05-27 08:36:30,497:INFO   :WebContainer : 12: Total time to execute service _prc:aaaa : 796 ms [system]: InvokeSOAPWebservice
2016-05-27 08:36:30,497:INFO   :WebContainer : 12: Total time to execute service _prc:aaaa : 7964 ms [system]: InvokeSOAPWebservice

2016-05-27 08:36:30,497:INFO   :WebContainer : 12: Total time to execute service _ord:bbb : 3796 ms [system]: InvokeSOAPWebservice
2016-05-27 08:36:30,497:INFO   :WebContainer : 12: Total time to execute service _prc:bbb : 1796 ms [system]: InvokeSOAPWebservice

How can i get average response times for the above data?

0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

... | rex "Total\s+time\s+to\s+execute\s+service\s+(?<service>\S+)\s+:\s+(?<response_time>\d+)"
| stats avg(response_time) BY service

View solution in original post

woodcock
Esteemed Legend

Like this:

... | rex "Total\s+time\s+to\s+execute\s+service\s+(?<service>\S+)\s+:\s+(?<response_time>\d+)"
| stats avg(response_time) BY service
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 GA in US-AWS!

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