Reporting

Generating response time report

DFresh4130
Path Finder

We have a search application with not so friendly formatted logging for reporting on. I'm having trouble extracting the response times from lines like below and then generating a response time report of some kind. Any suggestions?

2014-03-25 12:00:10,827 INFO [com.search.web.common.filter.PerformanceFilter] - /global/search.action,364ms query=ABC

Below is what I've come up with so far, but am stuck on how to accurately put the data into a report of some kind.

sourcetype="sfe" search.action | regex_raw="\d{2,5}ms"
Tags (1)
0 Karma

dkuk
Path Finder

It'd probably be worth auto-extracting the response time into a field so that whenever you search for sourcetype "sfe" you have a field that represents response time.

Then you'll have a field that you can perform statistical commands on, such as max, min, avg etc.

With that in mind I'd create props.conf entry to hook into sourcetype sfe. Something like the below:

props.conf:

[sfe]
EXTRACT_sfe_resp_time = ,(?<resp_time>\d{1,6})ms

Then you could run your search through a timechart command something like this:

sourcetype=sfe search.action | timechart avg(resp_time) by host

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...