You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copy req from '/home/vagrant/s3-cloudfront-logs/logs2';
Filter out IP addresses
delete from req where cip in ('54.212.250.36','24.137.221.230','74.86.158.106','74.86.158.107');
Report on hit percentage by URI
select h.uri, hits, miss, (hits*100/(miss+hits)) as hit_pct from
(select uri, count(1) as hits from req where x_edge_result_type = 'Hit' group by uri) h
inner join
(select uri, count(1) as miss from req where x_edge_result_type = 'Miss' group by uri) m on h.uri = m.uri;