Apache Logging Lab - Zacham17/my-tech-journal GitHub Wiki
Brief Summary
In this lab, I viewed the access logs file for the Apache web server and interpreted what I saw.
Useful Notes/Tips
- The apache access log file location is /var/log/httpd/access_log
- This files contains logs for each time a request is made to the web server
Tables
Below are two tables explaining the information fields shown in the access log file. There is one table showing a successful URL request and one table showing an unsuccessful URL request. NOTE: There were some fields in my log file that we filled with "-". This means that the requested piece of information was not available.
Successful URL
| Field Value | Field Name |
|---|---|
| 10.0.5.150 | Client IP Address |
| Mozilla 5.0 | Browser(Part of the User-Agent HTTP request header) |
| 28/Oct/2021:10:51:21 | Date and Time of Request |
| “GET /index.php HTTP/1.1” | Request Line |
| 200 | Status Code |
| 154 | Size of the object returned to the client |
Unsuccessful URL
| Field Value | Field Name |
|---|---|
| 10.0.5.150 | Client IP Address |
| Mozilla 5.0 | Browser(Part of the User-Agent HTTP request header) |
| 28/Oct/2021:10:53:45 | Date and Time of Request |
| “GET /doesnotexist.html HTTP/1.1” | Request Line |
| 404 | Status Code |
| 215 | Size of the object returned to the client |