Skip to main content
 
 
Splunk Lantern

Long-term website performance trends

 

Gradual performance degradations introduced by regular software releases, increasing site load, or underprovisioned hardware often goes undetected without regular monitoring. Using the site homepage as a baseline, you want to perform long-term trending of site performance to identify problems. Additionally, you want a visualization to validate that a major production change hasn't inadvertently affected site performance.

Data required

Web server data

Procedure

  1. Ensure you are have deployed a web server add-on to the search heads so that web server data tags and fields are defined. This sample search uses the Splunk Add-on for Apache Web Server, but you can replace this source with any other web server data used in your organization. For more information, see About installing Splunk add-ons.
  2. Choose one or two global or critical pages on your site to filter on. Alternatively, if you're leveraging an up/down detector like Pingdom, you can filter on that.
  3. Run the following search. You can optimize it by specifying an index and adjusting the time range.
tag=web uri_path IN ("/?*", "/index.*", "/home*", "/login*") response_time=*
|timechart span=1h perc95(response_time) AS perc95_response_time avg(response_time) AS avg_response_time

Search explanation

The table provides an explanation of what each part of this search achieves. You can adjust this query based on the specifics of your environment.

Splunk Search Explanation

tag=web

Search for events that are tagged as web events.

uri_path IN ("/?*", "/index.*", "/home*", "/login*")

Return uri_path values that have a partial match to any of the strings shown.

response_time=*

Search for results with any response time.

|timechart span=1h perc95(response_time) AS perc95_response_time avg(response_time) AS avg_response_time

Graph the average and 95th percentile response times for each uri_path in 1-hour time increments.

Next steps

A column chart in stack mode allows you to easily visualize the trends in response times for the filtered uri_paths. You should investigate periodic rises and falls in your response times to determine the cause.

A common next step is to compare this month to last month and have the two timecharts on the same dashboard. You can adjust the current month and previous month timeframes if your business needs a longer or shorter time period to view and compare.

Finally, you might be interested in other processes associated with the Managing web server performance use case.