turbot/tailpipe-mod-apache-access-log-detections

Query: Top 10 URLs (Successful Requests)

Description

List the top 10 requested URLs by successful request count.

Usage

powerpipe query apache_access_log_detections.query.activity_dashboard_requests_by_successful_requests

Tailpipe Tables

SQL

select
request_uri as "Path",
count(*) as "Request Count",
string_agg(distinct status::text, ', ' order by status::text) as "Status Codes"
from
apache_access_log
where
status between 200 and 299
and request_uri is not null
group by
request_uri
order by
count(*) desc,
request_uri
limit 10;

Dashboards

The query is used in the dashboards: