🌍Access Log
Also known as access.log, Web Server Log, Request Log
A file with a line for each visit to a web server.
Think of it like
It is like a visitors' book at a front desk. Everyone who comes in writes their name and the time.
Example
Jack's site shows errors. He reads the access log and finds hundreds of 404 answers for one old link.
Why it matters
It is the first place to look when a page breaks or the traffic looks odd.
Definition
Example code
console
$ tail -n 1 /var/log/nginx/access.log
203.0.113.5 - - [16/Nov/2026:10:42:07 +0000] "GET /about HTTP/1.1" 200 5120 "-" "Mozilla/5.0"Common mistake
Key takeaways
- 1One line each. Every request is written down.
- 2Who, what, when. Address, path, time and status.
- 3Errors elsewhere. Problems go to the error log.