Skip to the content
Start free

What are server logs?

Server logs are the web server’s own record of each request it handles: which IP address asked for which page, when, what status came back and what software it claimed to be. They show crawlers and AI bots that browser analytics leaves out. If you want to know who really reads your website, people and machines alike, the log is where the evidence starts.

What is a server log? #

Most web servers keep two kinds. The access log has one line per request. The error log records problems; Apache calls it the most important log file for finding out what went wrong. Both sit on the origin server, the machine that builds your pages. If a CDN stands in front of it, the CDN keeps logs of its own.

What does a log line look like? #

Apache and nginx both have a “combined” log format. In nginx it is the default when no other format is named. Apache’s documentation gives this example:

127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"

  • 127.0.0.1: the visitor’s IP address
  • -: the identity field; a hyphen means the information is not available
  • frank: the user name, only when the page needed a sign-in
  • [10/Oct/2000:13:55:36 -0700]: when the request arrived
  • "GET /apache_pb.gif HTTP/1.0": the method, the address asked for and the protocol
  • 200: the status code (2xx success, 3xx redirect, 4xx client error, 5xx server error)
  • 2326: bytes sent, not counting headers
  • the last two quoted parts: the referring page and the user agent

Logs show what search crawlers really did, page by page. You can see where Googlebot spends its crawl budget, which pages it never reaches and which return a 404 or a redirect chain. Google’s Crawl Stats report in Search Console shows part of this. It covers Google’s own crawlers only, and Google says some requests might not be counted, so its numbers may differ from your server logs.

Why do logs matter for AI answers? #

Google Analytics automatically excludes known bot traffic, using Google research and the IAB’s list of known spiders and bots. You cannot turn this off or see how much was left out. Your logs are where GPTBot, ClaudeBot, PerplexityBot and the rest show up. They hold the first steps of an AI citation: the knock, and the follow back on your link. See bot traffic in Google Analytics.

How are logs different from analytics? #

Server log Browser analytics
Made by The server, for every request A script running in a person’s browser
Sees bots Yes, all that reach the server Known bots are left out
Sees cached pages Only in the CDN’s own log Yes, if the script runs
Needs consent or cookies No: nothing runs or is stored on the device Often, under PECR
Shows images, feeds, llms.txt Yes, every file No, pages only

Neither is complete alone. Logs tell you who asked; analytics tells you what people did on the page.

How does logging work? #

The server writes one line as each request finishes. Files grow fast. Apache says to set up automatic log rotation from the start, and offers a tool that rotates logs without a restart. nginx can buffer and gzip its logs as it writes them. Apache advises against looking up host names while logging, because it can slow the server; it suggests resolving them later instead.

Which AI bots will I see? #

Name in the log Who What it does
GPTBot OpenAI Crawls content that may be used for training
OAI-SearchBot OpenAI Finds sites for ChatGPT’s search features
ChatGPT-User OpenAI Visits a page when a user’s request needs it
ClaudeBot Anthropic Collects content that could help training
Claude-User Anthropic Fetches a page when someone asks Claude
Claude-SearchBot Anthropic Crawls to improve search results
Googlebot Google Crawls for Google Search, AI features included

Sources: OpenAI’s crawler page, Anthropic’s crawler page and Google’s crawler list. Each company publishes its IP ranges. The names split into a training crawler, a search crawler and a live fetcher.

What should I watch for? #

  • Fake bots. The sender writes the user agent. Confirm big names with a reverse DNS lookup on the IP address from your logs, or match it against the published IP lists. See reverse DNS bot check.
  • Missing requests. A CDN cache exists to take load off your server, so requests it answers never reach the origin and may never appear in your own log. Read the CDN’s logs too. See edge cache.
  • Personal data. The ICO says UK GDPR names IP addresses as online identifiers, which can be personal data. Keep logs only as long as you need them.

Common mistakes #

  • Trusting the name. A line saying “Googlebot” proves only that something said it.
  • Reading only the origin log. Cached pages hide most bot reads.
  • Keeping logs for ever. The ICO’s storage limitation principle says you must not keep personal data longer than you need it. Set a data retention period.
  • Opening raw logs carelessly. Apache warns that visitors can insert control characters into log files, and that anyone who can write to the log folder can likely take over the server account.
  • Counting hits as visitors. One bot reading one page ten times is ten requests, not ten visitors.

A worked example #

Four lines from a made-up shop’s log (shortened; the 203.0.113.x and 198.51.100.x addresses are example ranges; 66.249.66.1 is the example address Google uses in its own guide):

66.249.66.1    GET /bike-lights/   200  "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.40   GET /bike-lights/   200  "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.77   GET /old-range/     404  "... compatible; GPTBot/1.4; +https://openai.com/gptbot"
198.51.100.9   GET /bike-lights/   200  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/..."
Line What to do Verdict
1 Reverse DNS gives googlebot.com, forward DNS matches Real Googlebot
2 Same name, address not in Google’s lists Fake: treat as an unknown machine
3 Check against OpenAI’s GPTBot list; fix the 404 Training read of a dead page
4 A browser name; analytics may count it too Probably a person

How to check it #

  1. Get the logs. Ask for the access logs from your server and your CDN. Note how long each is kept.
  2. Sort the visitors. Drop a file into the AI Crawler Log Analyser, which works in your browser, to see which AI crawlers read what.
  3. Prove the big names. Paste each address into Verify an AI Bot. See verified bots and ChatGPT-User.
  4. Compare with your rules. If a blocked bot still reads pages, check your robots.txt with the Robots.txt Checker and the AI Bot Checker. Persistent rule-breakers belong in your web application firewall or rate limiting.
  5. Fix what the bots hit. Trace 404s and redirects with the Redirect Checker and the Broken Link Checker; watch for a soft 404.
  6. Find what the cache hides. The HTTP Header Checker shows cache status, and the Edge Cache Checker says whether a page came from cache.
  7. Point bots at the right pages. Check your XML sitemap with the Sitemap Checker and your llms.txt with the llms.txt Checker.
  8. Check the page overall. The AI Readiness Checker scores a page for AI bots.
  9. Keep it running. The Log file analyser, Bot verification log, Fake bot detector and Crawl budget by bot are in URSY Pro, opening in stages. See AI bot analytics.

What URSY.com counts #

We read two logs: the CDN’s edge log, which lists every request including cache hits, and the requests that reach the website. A request seen in both has the same request ID and is counted once. We check bots against 18 published IP lists, refreshed weekly, and mark each one real, fake or unknown. We never keep full IP addresses or query strings. Full rules: methodology.

Questions #

Why does my log show more visits than Google Analytics? #

The log counts every request, bots included. Google Analytics leaves out known bots and counts only browsers that run its tag. See why analytics numbers are low.

Can I see AI bots without server logs? #

Only partly. Browser analytics never sees a bot that does not run scripts. Search Console’s Crawl Stats covers Google only. Logs, or a tool that reads them, are the full record.

How long should I keep server logs? #

As long as you need them and can justify, says the ICO’s storage limitation principle. Write the period down and delete or anonymise after it.

Are server logs the same as server-side tracking? #

No. Logs record every request automatically. Server-side tracking sends chosen events to an analytics tool from your server.

No log access? See 4 free ways to see AI visitors without one.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: What are server logs?. URSY. Updated 26 November 2026. https://ursy.com/wiki/server-logs/ · Section links

Tools for this

All 871 wiki entries, A to Z →