---
title: "Log file analysis"
description: "Log file analysis reads server access logs to see which people, search crawlers and AI bots requested each page and what the server sent back."
url: https://ursy.com/wiki/log-file-analysis/
updated: 2026-11-26T15:43:58+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/log-file-analysis/
---

# Log file analysis

> Log file analysis reads server access logs to see which people, search crawlers and AI bots requested each page and what the server sent back.

**Log file analysis is reading your web server’s access logs to see exactly which people, search crawlers and AI [bots](https://ursy.com/wiki/bot-web-robot/) asked for which pages, when, and what your server sent back.** Analytics tools only see visitors who run their script. The server log records every request, so it is the closest thing to a full record of who reads your site.

## What is log file analysis? {#what-is-log-file-analysis}

Each time anything asks your server for a file, the server can write one line to an access log. Log file analysis means collecting those lines, cleaning them, sorting them by visitor type and looking for patterns. It answers questions no other tool can: did [Googlebot](https://ursy.com/wiki/googlebot/) reach my new pages, how often does [GPTBot](https://ursy.com/wiki/gptbot/) visit, and which addresses are wasting my server’s time? See [server logs](https://ursy.com/wiki/server-logs/) for the basics.

## What does a log line look like? {#what-does-a-log-line-look-like}

The [Apache log documentation](https://httpd.apache.org/docs/2.4/logs.html) sets out the Combined Log Format, which most servers use or copy. Its own example line is:

```
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)"
```

| Part | Meaning |
| --- | --- |
| 127.0.0.1 | The [IP address](https://ursy.com/wiki/ip-address/) of the client |
| – frank | Identity check (almost always blank) and logged-in user |
| [10/Oct/2000:13:55:36 -0700] | Time the request arrived |
| “GET /apache_pb.gif [HTTP](https://ursy.com/wiki/http/)/1.0” | Method, address asked for, protocol |
| 200 | The [HTTP status code](https://ursy.com/wiki/http-status-code/) sent back |
| 2326 | Size of the reply body in bytes |
| “http://www.example.com/start.html” | The [referrer](https://ursy.com/wiki/referrer/), if sent |
| “Mozilla/4.08 …” | The [user agent](https://ursy.com/wiki/user-agent/) the client claims |

The [nginx log module](https://nginx.org/en/docs/http/ngx_http_log_module.html) has the same “combined” format built in, and uses it when no other is named. Nginx can also log `$request_time`, the processing time in seconds with millisecond detail, which is handy for finding slow pages.

## Why does it matter for search? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/google/)’s guide to [managing crawl budget](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget) is aimed at large sites, roughly 1 million or more pages, or 10,000 or more pages that change daily. It says Google crawls as much as your server can handle, and slows down when it sees slow replies, 5xx errors or 429 rate limits. It warns that soft 404 pages keep getting crawled and waste budget. Logs show all of this page by page:

- pages Googlebot never visits, often [orphan pages](https://ursy.com/wiki/orphan-page/);
- crawls wasted on [URL parameters](https://ursy.com/wiki/url-parameter/), [faceted navigation](https://ursy.com/wiki/faceted-navigation/) and [redirect chains](https://ursy.com/wiki/redirect-chain/);
- [soft 404](https://ursy.com/wiki/soft-404/) and error pages that keep being asked for;
- how long after publishing a page is first crawled.

Search Console’s [Crawl Stats report](https://support.google.com/webmasters/answer/9679690) gives a summary: total requests, download size, average response time, and breakdowns by response, file type, purpose (discovery or refresh) and Googlebot type. Logs give you the same story for every bot, not only Google’s.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

AI crawlers leave no trace in [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/), because they do not run its script. Logs are where you see them. OpenAI’s [crawler page](https://developers.openai.com/api/docs/bots) explains why the names matter: [OAI-SearchBot](https://ursy.com/wiki/oai-searchbot/) is for search, GPTBot gathers content that may be used to train models, and [ChatGPT-User](https://ursy.com/wiki/chatgpt-user/) visits when a person’s question needs a page. OpenAI also says robots.txt rules may not apply to ChatGPT-User, since a person started the action. So a log line from ChatGPT-User is close to a real reader, while GPTBot is not. Read [training crawler](https://ursy.com/wiki/training-crawler/) and [live fetcher](https://ursy.com/wiki/live-fetcher/).

## How does it work? {#how-does-it-work}

1. **Collect.**  Download access logs from your server or [CDN](https://ursy.com/wiki/cdn/). If a CDN answers from its [edge cache](https://ursy.com/wiki/edge-cache/), your [origin server](https://ursy.com/wiki/origin-server/) log will miss those [hits](https://ursy.com/wiki/hit-analytics/).
2. **Parse.**  Split each line into fields. Drop requests for images and scripts if you only want pages.
3. **Verify.**  Check each bot’s address. Google’s page on [verifying Googlebot](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) gives a reverse then forward [DNS](https://ursy.com/wiki/dns/) check, or matching against its published JSON lists. OpenAI publishes its own lists too.
4. **Group.**  Sort into people, [search crawlers](https://ursy.com/wiki/search-crawler/), [AI crawlers](https://ursy.com/wiki/ai-crawler/), fakes and others.
5. **Compare.**  Match crawled pages against your [XML sitemap](https://ursy.com/wiki/xml-sitemap/) to find gaps both ways.

## Common mistakes {#common-mistakes}

- **Trusting names.**  A line that says Googlebot may not be Google. Always check the address.
- **Too short a window.**  Some pages get crawled once a month. Look at 30 days or more.
- **Missing the edge.**  Origin logs alone undercount when a CDN serves cached pages.
- **Keeping addresses for ever.**  The [ICO](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/personal-information-what-is-it/what-is-personal-information-a-guide/) says IP addresses may be personal data. Set a [data retention](https://ursy.com/wiki/data-retention/) limit.
- **Blocking with no proof.**  Read the log before you add rules to [robots.txt](https://ursy.com/wiki/robots-txt/) or [block AI crawlers](https://ursy.com/wiki/block-ai-crawlers/).

## A worked example {#a-worked-example}

A small UK online shop with 4,000 pages reads 30 days of logs.

| Finding | What it means | Fix |
| --- | --- | --- |
| Over half of Googlebot’s hits were on filter addresses like `?colour=red&size=9` | Crawl spent on near-copies | Block sort and filter variants; link to clean pages |
| 180 product pages had no Googlebot visit | Weak internal links | Link them from category pages |
| Thousands of “GPTBot” lines from addresses not on gptbot.json | Fake bot | Rate limit or block those addresses |
| ChatGPT-User fetched 3 buying guides | People asked [ChatGPT](https://ursy.com/wiki/chatgpt/) about them | Keep those guides current |

## How to check it {#how-to-check-it}

1. Upload a log sample to our [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/) to sort AI bots from people.
2. Check single addresses with [Verify AI Bot](https://ursy.com/verify-ai-bot/).
3. See what your robots.txt allows with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/) and [AI Bot Checker](https://ursy.com/ai-bot-checker/).
4. Find the [redirects](https://ursy.com/wiki/redirect/) and errors bots keep hitting with the [Redirect Checker](https://ursy.com/redirect-checker/) and [Broken Link Checker](https://ursy.com/broken-link-checker/), and test your sitemap with the [Sitemap Checker](https://ursy.com/sitemap-checker/).
5. Open the Crawl Stats report in [Google Search Console](https://ursy.com/wiki/google-search-console/).
6. In URSY Pro, opening in stages: the [Log file analyser](https://ursy.com/pro/log-file-analyser/), [Crawl budget by bot](https://ursy.com/pro/crawl-budget-by-bot/) and [Pages AI never reads](https://ursy.com/pro/pages-ai-never-reads/).

## Questions {#questions}

### Do small sites need log file analysis? {#do-small-sites-need-log-file-analysis}

For crawl budget, rarely. For seeing AI bots and fake bots, yes: no other tool shows them.

### Where do I find my logs? {#where-do-i-find-my-logs}

In your server’s control panel, an SFTP folder, or your CDN’s log export. Nginx writes to `logs/access.log` by default.

### Why do logs and analytics never agree? {#why-do-logs-and-analytics-never-agree}

Analytics counts browsers that run its tag and accept [cookies](https://ursy.com/wiki/cookie/). Logs count every request, bots included. See [Search Console vs analytics](https://ursy.com/wiki/search-console-vs-analytics/).

## Related words {#related-words}

- [Server logs](https://ursy.com/wiki/server-logs/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [Verified bots](https://ursy.com/wiki/verified-bots/)
- [AI crawler](https://ursy.com/wiki/ai-crawler/)
- [Bot traffic in analytics](https://ursy.com/wiki/bot-traffic-in-analytics/)

## Sources {#sources}

- [Apache HTTP Server 2.4: Log Files](https://httpd.apache.org/docs/2.4/logs.html), checked 24 November 2026
- [nginx: Module ngx_http_log_module](https://nginx.org/en/docs/http/ngx_http_log_module.html), checked 24 November 2026
- [Google Search Central: Crawl budget management for large sites](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget), checked 24 November 2026
- [Search Console Help: Crawl Stats report](https://support.google.com/webmasters/answer/9679690), checked 24 November 2026
- [Google Search Central: Verifying Googlebot and other Google crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), checked 24 November 2026
- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots), checked 24 November 2026
- [ICO: What is personal information? A guide](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/personal-information-what-is-it/what-is-personal-information-a-guide/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
