{"id":32,"date":"2010-08-15T11:56:06","date_gmt":"2010-08-15T09:56:06","guid":{"rendered":"http:\/\/roysharon.com\/blog\/?p=32"},"modified":"2010-12-19T12:00:13","modified_gmt":"2010-12-19T10:00:13","slug":"unix-tidbit-most-requested-web-resources","status":"publish","type":"post","link":"http:\/\/roysharon.com\/blog\/32","title":{"rendered":"Unix Tidbit: Most Requested Web Resources"},"content":{"rendered":"<div>\n<p>This is a quick and dirty way to find the most requested static resources of your site (e.g., images or javascript files), using Unix shell commands:<\/p>\n<pre>grep -oE \"GET \/[^ \\t]+\\.(gif|png|js|css)\" \/var\/log\/httpd\/access_log \\\r\n    | sort | uniq -c | sort -nr<\/pre>\n<p>Use the correct path to your system\u2019s HTTP server access log.<\/p>\n<p>You can of course also add or replace extensions, to your heart&#8217;s content.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick and dirty way to find the most requested static resources of your site (e.g., images or javascript files), using Unix shell commands: grep -oE &#8220;GET \/[^ \\t]+\\.(gif|png|js|css)&#8221; \/var\/log\/httpd\/access_log \\ | sort | uniq -c | sort &hellip; <a href=\"http:\/\/roysharon.com\/blog\/32\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[5],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-unix-tidbits","tag-unix"],"_links":{"self":[{"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":4,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":34,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions\/34"}],"wp:attachment":[{"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roysharon.com\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}