When a file or a resource in the website is found to be missing, it is called a 404 error. The Uniform Resource Identifier (URI) of the request will give insight about the missing file. This information can be used to check whether the file has been accidentally deleted or removed from your deployment. You can add back the deleted file and redeploy the site. You can use the grep command to find the 404 errors.
The following command can be used to identify and extract the URL, identify the duplicate lines, and sort to summarize the list.
$ grep " 404 " access.log | cut -d ' ' -f 7 | sort | uniq -c | sort -nr
17 /manager/html
3 /robots.txt
3 /phpMyAdmin/scripts/setup.php
3 //myadmin/scripts/setup.php
3 /favicon.ico
Although this can be manually analyzed, a log management tool can help in analyzing these errors seamlessly. Check out EventLog Analyzer, a comprehensive log management solution, which can automatically centralize, parse and analyze these logs and provide out of box reports and alerts. Learn more.
Interested in a
log management
solution?
Manage logs, comply with IT regulations, and mitigate security threats.
Our support technicians will get back to you at the earliest.
Zoho Corporation Pvt. Ltd. All rights reserved.