Here is one line from an nginx access log, in the default format:
66.249.66.1 - - [18/Nov/2026:09:14:02 +0000] "GET /product/wool-coat/ HTTP/1.1" 200 18842 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
Six facts are in there. An IP address. A timestamp to the second. The exact path requested. The status code the server returned. The number of bytes sent. The agent string the client claimed.
Google Search Console will tell you that the URL is indexed. It will not tell you that this IP asked for it at 09:14:02, that the response was 18,842 bytes, or how many times the same address came back yesterday. Those facts exist only in the log, and they answer a different set of questions than the reports do.
One Line, Decoded
The format above is the Apache “combined” pattern, and nginx uses it by default: “If the format is not specified then the predefined ‘combined’ format is used.” Apache’s documentation spells the directive out:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
Read the directives in order and the line stops looking like noise. %h is the client address. %l and %u are almost always a hyphen. %t is the timestamp. %r is the request line — method, path, protocol. %>s is the final status. %b is the bytes sent. The two quoted fields at the end are the referrer and the user agent.
Two of those fields carry more weight than the rest for SEO work, and both are frequently misread.
The agent string is a claim, not an identity. Any client can send Googlebot/2.1 and nothing stops it. Google’s own documentation opens by naming the problem: it exists for people “concerned that spammers or other troublemakers are accessing your site while claiming to be from Google.”
The address is the connection, not the person. Apache’s notes on %h are explicit: “If a proxy server exists between the user and the server, this address will be the address of the proxy, rather than the originating machine.” On a WordPress site behind Cloudflare or a load balancer, every line may show the same handful of edge IPs unless the origin is configured to trust X-Forwarded-For. Crawler analysis survives that; human-traffic analysis does not.
The Bot You Think You Have
Before counting Googlebot visits, confirm that the lines are Googlebot. The method is a reverse-then-forward DNS check, and Google documents both halves:
Run a reverse DNS lookup on the accessing IP address from your logs, using the
hostcommand. Verify that the domain name is either googlebot.com, google.com, or googleusercontent.com. Run a forward DNS lookup on the domain name retrieved in step 1 using thehostcommand on the retrieved domain name. Verify that it’s the same as the original accessing IP address from your logs.
Both directions matter. A reverse lookup that resolves to googlebot.com is easy to fake with a PTR record on a domain you control; the forward lookup is what closes the loop, because you cannot make Google’s DNS answer with your IP.
IP=66.249.66.1
PTR=$(host "$IP" | awk '{print $NF}' | sed 's/\.$//')
echo "reverse: $PTR"
case "$PTR" in
*.googlebot.com|*.google.com|*.googleusercontent.com)
if host "$PTR" | awk '{print $NF}' | grep -qx "$IP"; then
echo "verified Google crawler"
else
echo "forward lookup mismatch - treat as spoofed"
fi
;;
*)
echo "not a Google crawler"
;;
esac
Run it on a sample, not on every line. Google’s page offers the same advice for volume work: “For large scale lookups, use an automatic solution to match a crawler’s IP address against the list of published Google IP addresses.”
What this protects you from is a false conclusion. If 40% of your “Googlebot” traffic is a scraper in a datacentre, then your crawl-rate chart is measuring the scraper, and every decision built on it is wrong.
Four Questions the Log Answers
Is Google crawling the pages that matter, or the same six?
Search Console tells you which URLs are indexed. It does not hand you a per-URL fetch count. The log does, and the distribution is usually more lopsided than people expect: a handful of pages absorbing most of the crawl, while the product or service pages that need freshness are visited weekly at best.
That pattern is not a penalty. It is Google’s crawl demand at work, and the fix is usually internal linking rather than a technical change. The internal structure guide covers the hierarchy side; the log tells you whether the hierarchy is working.
Who else is arriving?
Every agent string that hits the server is in the log, including the ones no Google report has any reason to mention: Bingbot, the SEO audit crawlers, and the AI crawlers such as GPTBot and ClaudeBot. If a CDN or WAF is quietly blocking one of them, the log shows a 403 where you expected a 200, and the block was invisible everywhere else.
This matters more than it did five years ago, because “is this crawler welcome” is now a policy question rather than a default. You cannot set that policy without knowing who is actually arriving.
Which 404s are being crawled?
404s fall into two groups that need opposite responses. A 404 for a URL that was never valid and is not linked anywhere is noise. A 404 for a URL that Googlebot requests repeatedly, or that arrives with a referrer from another site, is a broken link that is costing you a visit every time it is followed.
The second group is worth fixing today, and the dead link workflow is the faster route for the ones inside your own content.
How much is the server actually sending?
%b is bytes for the response, not for the page. A URL that returns 200 with 900 KB of HTML is a different problem from one that returns 200 with 18 KB, and neither is visible in an indexing report. If you have ever wondered why a page that “looks fine” scores badly on PageSpeed, the byte column is the first place to look.
The Block
Three commands cover most of the work. They assume the combined format and a request line with three tokens.
LOG=/var/log/nginx/access.log
#1. the 404s, worst first
awk '$9 == 404 {print $7}' "$LOG" | sort | uniq -c | sort -rn | head -20
#2. who is crawling, by agent string
awk -F'"' '{print $6}' "$LOG" | sort | uniq -c | sort -rn | head -20
#3. Googlebot's share of all requests
awk -F'"' '/Googlebot/ {g++} END {print g " of " NR}' "$LOG"
The first command is the one that pays for itself. The second is the one that surprises people, because the top agent is often not a search engine at all. The third is a ratio worth recording monthly; a sudden drop usually means a server change, a robots rule, or a WAF update, and knowing the number before the drop is what makes the drop visible.
If you want the visual version, GoAccess parses these files directly and ships predefined formats for both Apache and nginx. Its own instructions put the format question first: “you first need to determine the log format of your access log.” That is the whole prerequisite. A dashboard built on the wrong format is a wall of zeroes with a green header.
Crawl Budget, With Numbers Attached
Google defines the concept in two parts: “A site’s crawl budget is determined by two main elements: crawl capacity limit and crawl demand.”
The capacity limit is about the server. It is “the total amount of time your server spends holding connections open for Google, factoring in both the number of parallel connections and their duration” — so slow responses reduce how much gets crawled, and a burst of 500s or 429s lowers the limit further.
The demand side is about the inventory. Google’s own phrasing on the biggest lever is worth keeping: “Without guidance from you, Google tries to crawl all or most of the URLs that it knows about on your site. If many of these URLs are duplicates, or you don’t want them crawled for some other reason (removed, unimportant, and so on), this wastes a lot of Google crawling time on your site.”
Read the log after that sentence and it becomes a measurement. If 60% of Googlebot’s requests land on filtered category URLs and ?replytocom variants, the crawl is being spent on duplicates, and the fix is a canonical or a robots rule rather than anything resembling a content strategy. The SEO basics piece covers the duplicate signals; the log tells you whether they are needed yet.
Where the Log Lies
Five distortions are common enough to check for before trusting a chart.
One IP, many visitors. Behind a proxy or CDN, the address is the edge node. Crawler counts survive; “unique visitors” from a log do not.
Missing lines. Rotated logs, a CDN that does not forward origin logs, or a host that only keeps seven days will all make a trend look like an event. Confirm the coverage window before drawing a conclusion across months.
No timing by default. The combined format records bytes, not duration. To measure response time you need %D in Apache or $request_time in nginx, added to the format string deliberately. A log analysis that claims to show slow pages using the default format is showing you size, not speed.
Assets outnumber pages. Images, CSS, and JavaScript requests dominate the line count. Filter to text/html before computing anything about pages, or every percentage you produce will be about bytes.
Crawlers cache. A fetch is evidence of a visit, never evidence of everything a user saw. A bot that fetched a page once may have served a stale or cached version many times, and the log cannot tell you which.
What Search Console Can and Cannot Say
The reports are not wrong; they answer a different question. The Page indexing report’s own documentation is unusually direct about its limits:
Note that the list of example URLs in the report is limited to 1,000 items, and isn’t guaranteed to show all URLs in a given status, even when less than 1,000 items.
It also says what the report is not for: “This report isn’t used to investigate the index status of specific pages.” For one URL, that is the URL Inspection tool; for the pattern across all of them, it is the log.
So the split is clean. Search Console tells you what Google concluded about your pages, at the scale of an example set. The log tells you what every client actually requested, at the scale of every request. Neither is a substitute for the other, and an audit that uses only one of them is guessing at half the picture.
It is also the only traffic source that does not depend on a script running in the browser, which is why it survives ad blockers, tracking protection, and consent banners. The privacy-first analytics comparison covers the client-side half; the server log is the floor beneath it. Both belong in the same monthly review, because the gap between them is itself a finding — a page with heavy log traffic and no analytics sessions is being fetched by something that is not a person in a browser.
A Monthly Ritual
Twenty minutes a month, run as part of the wider ranking programme rather than as a separate project, in this order:
- Pull a full week of logs, not a day. Weekday and weekend crawler behaviour differ enough that a single day misleads.
- Run the 404 list. Fix anything with a referrer or a repeat count.
- Run the agent list. Note any new crawler, and decide deliberately whether it is welcome.
- Compare Googlebot’s share to last month. A change of more than a few points deserves an explanation from the change log.
- Sample five Googlebot IPs through the DNS check. If one fails, the whole month’s numbers are suspect and you should say so in the report rather than repeating them.
That last step is the one people skip, and it is the one that keeps the other four honest.
FAQ
Do I need log files if I have Search Console?
For indexing status, no. For crawl frequency per URL, other crawlers, raw status codes, and response sizes, yes — none of those exist in the reports. Small sites can live without logs. Sites with more than a few thousand URLs, or with a CDN in front, usually cannot.
How do I know the Googlebot in my log is real?
Reverse DNS, then forward DNS, and compare the result to the original IP. A PTR record alone proves nothing because anyone can create one. Google publishes the hostname patterns and the IP ranges to check against.
Do managed hosts give access to raw logs?
Usually through a control panel download rather than the filesystem, and often for a limited window. Ask for the retention period before designing a monthly process around it; a seven-day window makes a monthly review impossible and a weekly one necessary.
Leave a Reply