access log

A log file where a web server writes one line per request, with the client address, time, method, path and status code.

In more detail

Its fixed layout makes it easy to search and count with text tools, for example how many requests returned 404 or which paths are busiest. Web servers such as Apache and nginx write one by default.

Examples

grep GET access.log | grep -c ' 200 '
192.0.2.66 - - [21/Sep/2026:09:52:30 +0000] "POST /login HTTP/1.1" 401 412
for line in open("access.log"):

Related terms

Taught in

References