{"id":513,"date":"2013-01-23T19:46:40","date_gmt":"2013-01-24T00:46:40","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/01\/23\/view-request-type-url-and-response-codes-apache-access-log\/"},"modified":"2025-12-31T16:03:19","modified_gmt":"2025-12-31T21:03:19","slug":"view-request-type-url-and-response-codes-apache-access-log","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/","title":{"rendered":"View Request Type, URL, and Response Codes from Apache Access Log"},"content":{"rendered":"\n<p>In this article I&#8217;ll be reviewing how to use Apache access logs on either your VPS (Virtual Private Server) or dedicated server in order to determine the types of requests your website is handling.<\/p>\n\n\n\n<p>A lot of times the usage on your server can be greatly affected by the types of requests that are happening on your websites, if you&#8217;ve read either of my previous articles on how to do <a href=\"\/support\/server\/server-usage\/advanced-server-load-monitoring\/\">advanced server load monitoring<\/a>, or you&#8217;ve <a href=\"\/support\/server\/server-usage\/create-server-load-monitoring-bash-script\/\">setup a server load monitoring script<\/a> you might be aware that your server&#8217;s load average has been recently spiking.<\/p>\n\n\n\n<p>I&#8217;ve already covered <a href=\"\/support\/server\/server-usage\/determine-cause-of-server-usage-spike\/\">determining the cause of a server usage spike<\/a> which goes over taking a particular load spike&#8217;s time stamp and correlating that with your Apache access logs, and I&#8217;ve also gone over <a href=\"\/support\/server\/apache\/view-level-of-traffic-with-apache-access-log\/\">how to view the level of traffic with Apache access logs<\/a> which lets you view the hits per day, per hour, and per minute to your website.<\/p>\n\n\n\n<p>In this article I&#8217;ll be going over different types of requests that show up in your Apache access logs. More specifically the request type, requested URL, and response codes.<\/p>\n\n\n\n<p class=\"alert\">To follow along with the instructions in this article you&#8217;ll need to have either a VPS or dedicated server so that you can <a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\">SSH into the server<\/a> to run the commands we&#8217;ll go over.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">View Types of Requests from Apache Access Log<\/h2>\n\n\n\n<p>In this example our domain is <strong>example.com<\/strong> and the cPanel username is <strong>userna5<\/strong>. You can run the following command to get to the <strong>\/access-logs<\/strong> directory for that user:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cd ~userna5\/access-logs<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">cd ~userna5\/access-logs<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Run this command to see what Apache access logs are present:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>ls -lahtr<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">ls -lahtr<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>You should get back:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>drwxr-xr-x 3 root at0m 4.0K Dec 31 16:47 .\ndrwx--x--x 9 root wheel 4.0K Jan 4 06:01 ..\n-rw-r----- 2 root at0m 15K Jan 9 05:09 ftp.example.com-ftp_log\n-rw-r----- 2 root at0m 3M Jan 23 13:10 example.com<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">drwxr-xr-x <\/span><span style=\"color: #79B8FF\">3<\/span><span style=\"color: #E1E4E8\"> root at0m <\/span><span style=\"color: #79B8FF\">4<\/span><span style=\"color: #E1E4E8\">.0K Dec <\/span><span style=\"color: #79B8FF\">31<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">16<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #79B8FF\">47<\/span><span style=\"color: #E1E4E8\"> .<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">drwx--x--x <\/span><span style=\"color: #79B8FF\">9<\/span><span style=\"color: #E1E4E8\"> root wheel <\/span><span style=\"color: #79B8FF\">4<\/span><span style=\"color: #E1E4E8\">.0K Jan <\/span><span style=\"color: #79B8FF\">4<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">06<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #79B8FF\">01<\/span><span style=\"color: #E1E4E8\"> ..<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">-rw-r----- <\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\"> root at0m 15K Jan <\/span><span style=\"color: #79B8FF\">9<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">05<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #79B8FF\">09<\/span><span style=\"color: #E1E4E8\"> ftp.example.com-ftp_log<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">-rw-r----- <\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\"> root at0m 3M Jan <\/span><span style=\"color: #79B8FF\">23<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">13<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #79B8FF\">10<\/span><span style=\"color: #E1E4E8\"> example.com<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">View Request Types GET\/HEAD\/POST from Apache Access Log<\/h3>\n\n\n\n<p>Run the following command to view the types of requests that are happening the most, either <strong>GET<\/strong> which means a visitor is simply requesting a resource such as a HTML page or image, <strong>HEAD<\/strong> which is typically a web-browser or bot checking to see if the file requested has been updated since it was last accessed. Or a <strong>POST<\/strong> which means a visitor has filled out information in a form and is POSTing it to the server much like you would see from a login attempt.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>awk '{print $6}' example.com | sort | uniq -c | sort -n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">awk &#39;{print $<\/span><span style=\"color: #79B8FF\">6<\/span><span style=\"color: #E1E4E8\">}&#39; example.com | sort | uniq -c | sort -n<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Code breakdown:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table article_table is-style-stripes\"><table><tbody><tr><th class=\"has-text-align-left\" data-align=\"left\">awk &#8216;{print $6}&#8217; example.com<\/th><td>Use the <strong>awk<\/strong> command to print out the <strong>$6<\/strong>th column of data from the <strong>example.com<\/strong> Apache access log which is the request type.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">sort | uniq -c | sort -n<\/th><td>Sort the requests types, uniquely count them, then finally numerically sort them.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You should get back something like this:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>1089 \"HEAD\n105017 \"POST\n221268 \"GET<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">1089<\/span><span style=\"color: #E1E4E8\"> &quot;HEAD<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">105017<\/span><span style=\"color: #E1E4E8\"> &quot;POST<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">221268<\/span><span style=\"color: #E1E4E8\"> &quot;GET<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">View Highest Requested Base URLs from Apache Access Log<\/h3>\n\n\n\n<p>Run the following command to view the most requested base URLs from your website. For instance if you have requests for <strong>wp-cron.php?doing_wp_cron=135<\/strong> and <strong>wp-cron.php?doing_wp_cron=136<\/strong> this strips them down to just the base URL of <strong>wp-cron.php<\/strong>:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat example.com | cut -d\" -f2 | awk '{print $1 \" \" $2}' | cut -d? -f1 | sort | uniq -c | sort -n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">cat example.com | cut -d&quot; -f2 | awk &#39;{print $<\/span><span style=\"color: #79B8FF\">1<\/span><span style=\"color: #E1E4E8\"> &quot; &quot; $<\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\">}&#39; | cut -d? -f1 | sort | uniq -c | sort -n<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Code breakdown:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table article_table is-style-stripes\"><table><tbody><tr><th class=\"has-text-align-left\" data-align=\"left\">cat example.com | cut -d&#8221; -f2<\/th><td>Use the <strong>cat<\/strong> command to concatenate (read) the <strong>example.com<\/strong> Apache access log. Then use the <strong>cut<\/strong> command with the <strong>-d<\/strong>elimiter set to double quotes <strong>&#8220;<\/strong> and then use the <strong>-f<\/strong>ield of data that happens after the <strong>2<\/strong>nd occurence of the delimiter.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">awk &#8216;{print $1 &#8221; &#8221; $2}&#8217;<\/th><td>Use the <strong>awk<\/strong> command to print out the <strong>$1<\/strong>st column of data which is the request type, a space, then the <strong>$2<\/strong>nd column of data which is the base URL requested.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">cut -d? -f1<\/th><td>Use the <strong>cut<\/strong> command with the <strong>-d<\/strong>elimiter set to a question mark <strong>?<\/strong>, then print out the <strong>-f<\/strong>ield of data before the <strong>1<\/strong>st occurence which gives us back just the base URL.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">sort | uniq -c | sort -n<\/th><td>Sort all the data, uniquely count them, then numerically sort them from lowest to highest.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You should get back something like this:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>355 GET \/wp-login.php\n1448 POST \/wp-login.php<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">355<\/span><span style=\"color: #E1E4E8\"> GET \/wp-login.php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">1448<\/span><span style=\"color: #E1E4E8\"> POST \/wp-login.php<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">View Highest Requested Unique URLs from Apache Access Log<\/h3>\n\n\n\n<p>Run the following command to view the most requested unique URLs from your website. For instance if you have requests for <strong>wp-cron.php?doing_wp_cron=135<\/strong> and <strong>wp-cron.php?doing_wp_cron=136<\/strong> these will be treated as unique requests. This is a good method to use to see if one exact URL is getting hit again and again:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat example.com | cut -d\" -f2 | awk '{print $1 \" \" $2}' | sort | uniq -c | sort -n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">cat example.com | cut -d&quot; -f2 | awk &#39;{print $<\/span><span style=\"color: #79B8FF\">1<\/span><span style=\"color: #E1E4E8\"> &quot; &quot; $<\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\">}&#39; | sort | uniq -c | sort -n<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Code breakdown:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table article_table is-style-stripes\"><table><tbody><tr><th class=\"has-text-align-left\" data-align=\"left\">cat example.com | cut -d&#8221; -f2<\/th><td>Use the <strong>cat<\/strong> command to concatenate (read) the <strong>example.com<\/strong> Apache access log. Then use the <strong>cut<\/strong> command with the <strong>-d<\/strong>elimiter set to double quotes <strong>&#8220;<\/strong> and then use the <strong>-f<\/strong>ield of data that happens after the <strong>2<\/strong>nd occurence of the delimiter.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">awk &#8216;{print $1 &#8221; &#8221; $2}&#8217;<\/th><td>Use the <strong>awk<\/strong> command to print out the <strong>$1<\/strong>st column of data which is the request type, a space, then the <strong>$2<\/strong>nd column of data which is the full unique requested URL.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">sort | uniq -c | sort -n<\/th><td>Sort all the data, uniquely count them, then numerically sort them from lowest to highest.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You should get back something like this:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>2 POST \/wp-login.php?action=register\n4 GET \/wp-login.php\n157 GET \/wp-login.php?registration=disabled\n190 GET \/wp-login.php?action=register\n1446 POST \/wp-login.php<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\"> POST \/wp-login.php?action=register<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">4<\/span><span style=\"color: #E1E4E8\"> GET \/wp-login.php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">157<\/span><span style=\"color: #E1E4E8\"> GET \/wp-login.php?registration=disabled<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">190<\/span><span style=\"color: #E1E4E8\"> GET \/wp-login.php?action=register<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">1446<\/span><span style=\"color: #E1E4E8\"> POST \/wp-login.php<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">View Response Codes from Apache Access Log<\/h3>\n\n\n\n<p>Run the following command to view the most common response codes your visitors are causing.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat example.com | awk '{print $9}' | sort | uniq -c | sort -n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">cat example.com | awk &#39;{print $<\/span><span style=\"color: #79B8FF\">9<\/span><span style=\"color: #E1E4E8\">}&#39; | sort | uniq -c | sort -n<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Code breakdown:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table article_table is-style-stripes\"><table><tbody><tr><th class=\"has-text-align-left\" data-align=\"left\">cat example.com | awk &#8216;{print $9}&#8217;<\/th><td>Use the <strong>cat<\/strong> command to concatenate (read) the <strong>example.com<\/strong> Apache access log. Then use the <strong>awk<\/strong> command to only print out the <strong>$9<\/strong>th column of data which is the response code.<\/td><\/tr><tr><th class=\"has-text-align-left\" data-align=\"left\">sort | uniq -c | sort -n<\/th><td>Sort all the data, uniquely count them, then numerically sort them from lowest to highest.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You should get back something like this:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>306 500\n862 404\n893 301\n10012 302\n12485 200<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">306<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">500<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">862<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">404<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">893<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">301<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">10012<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">302<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">12485<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">200<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>You should now understand how to extract data out of your Apache access logs to get a good idea of the type of requests that your server is having to process.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article I&#8217;ll be reviewing how to use Apache access logs on either your VPS (Virtual Private Server) or dedicated server in order to determine the types of requests your website is handling. A lot of times the usage on your server can be greatly affected by the types of requests that are happening<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4355],"tags":[],"class_list":["post-513","post","type-post","status-publish","format-standard","hentry","category-apache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Apache Access Logs: Request Type, URL, and Response Codes<\/title>\n<meta name=\"description\" content=\"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache Access Logs: Request Type, URL, and Response Codes\" \/>\n<meta property=\"og:description\" content=\"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-24T00:46:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-31T21:03:19+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"View Request Type, URL, and Response Codes from Apache Access Log\",\"datePublished\":\"2013-01-24T00:46:40+00:00\",\"dateModified\":\"2025-12-31T21:03:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\"},\"wordCount\":934,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\",\"name\":\"Apache Access Logs: Request Type, URL, and Response Codes\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-01-24T00:46:40+00:00\",\"dateModified\":\"2025-12-31T21:03:19+00:00\",\"description\":\"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"View Request Type, URL, and Response Codes from Apache Access Log\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache Access Logs: Request Type, URL, and Response Codes","description":"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/","og_locale":"en_US","og_type":"article","og_title":"Apache Access Logs: Request Type, URL, and Response Codes","og_description":"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-01-24T00:46:40+00:00","article_modified_time":"2025-12-31T21:03:19+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"View Request Type, URL, and Response Codes from Apache Access Log","datePublished":"2013-01-24T00:46:40+00:00","dateModified":"2025-12-31T21:03:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/"},"wordCount":934,"commentCount":9,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Apache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/","name":"Apache Access Logs: Request Type, URL, and Response Codes","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-01-24T00:46:40+00:00","dateModified":"2025-12-31T21:03:19+00:00","description":"Learn how to use Apache access logs on either your VPS or dedicated server to determine the types of requests your website is handling.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/view-request-type-url-and-response-codes-apache-access-log\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"View Request Type, URL, and Response Codes from Apache Access Log"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4355,"name":"Apache","slug":"apache","link":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=513"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/513\/revisions"}],"predecessor-version":[{"id":131437,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/513\/revisions\/131437"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}