Free, independent guides since 2010

Analytics & data

Server log analysis: what your access logs reveal

What web server access logs contain and what you can learn from them: real traffic without JavaScript, search engine and AI crawler activity, errors, attacks and how to analyse logs.

<guide section="Analytics & data" type="article" read="1 min"/>

Every time a browser, bot or crawler requests a file from your site, the web server writes a line in its access log. Long before JavaScript analytics existed, these logs were the only statistics. They remain valuable – especially for technical SEO and security. See web server software.

A log line explained

Plain text
66.249.66.1 - - [02/Dec/2026:09:14:03 +0100] "GET /dns-records-explained HTTP/2" 200 18342 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
PartMeaning
66.249.66.1IP address of the client
[02/Dec/2026…]Date and time
GET /dns-records-explainedMethod and URL
200Status code
18342Bytes sent
"-"Referrer
Mozilla/5.0 … GooglebotUser agent

What you can learn

  • Crawl behaviour: which pages search engines crawl, how often, and which they ignore.
  • AI crawlers: how often bots like GPTBot or ClaudeBot visit (see robots.txt).
  • Errors: 404s and 500s that real users and bots hit (see 404 errors).
  • Attacks: repeated requests for wp-login.php, .env or other sensitive paths.
  • Heavy files: what consumes bandwidth.

Tools

  • Statistics tools in your hosting panel (such as AWStats or similar).
  • Command-line basics: grep, awk, sort, uniq.
  • Log analysers and SEO crawlers with log file analysis.
  • CDN analytics if you use a CDN (see CDN explained).
Plain text
# Top 10 URLs returning 404
grep '" 404 ' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head

Frequently asked questions

Where do I find my access logs?

In your hosting control panel (often under Logs or Statistics) or on the server, typically in a logs directory. Some hosts keep them only for a few days.

Are log statistics more accurate than analytics?

They count everything, including bots, so totals are higher. Analytics with consent counts fewer people. Both are useful for different questions.