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

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...