Support
 
Support Get Quote
 
 
 
 
  • Home
  • Cloud Security Alliance
Apache

Apache log analysis: Finding the causes of 404s

Feb 10, 2022 1 min read
 

Identifying the cause of 404s

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.

You may also like

 

Interested in a
log management
solution?

Try EventLog Analyzer
Database platforms

Understanding SQL Server Audit better

Read more
 
Previous articles
Next articles
Network devices

Critical Windows events: Event ID 6008 - Unexpected system shutdown

Read more
 

Manage logs, comply with IT regulations, and mitigate security threats.

Seamlessly collect, monitor, and analyze
logs with EventLog Analyzer

Your request for a demo has been submitted successfully

Our support technicians will get back to you at the earliest.

  •  
  •  
By clicking 'Submit', you agree to processing of personal data according to the Privacy Policy.

  Zoho Corporation Pvt. Ltd. All rights reserved.

Link copied, now you can start sharing
Copy