Server log file analyzer

Analyze Apache, Nginx and IIS access logs: which bots crawl where, which status codes they get, and how many of their requests end in errors. Optionally verify bot identity by forward-confirmed reverse DNS.

What it does

Read a log

log-analyze reads one access-log file, plain or gzip, and detects the format from its first lines. It groups requests by bot family and reports hits, bytes, unique IPs, status codes and visited sections. Results describe the part of the log that was parsed, not the whole site.

  • Formats: Apache and Nginx Common or Combined, and IIS W3C Extended.
  • --max-lines sets an explicit input budget.
  • Results are paged, and --bot and --ip filter them.

Verify bots

A user agent alone proves nothing. With --verify-bots, SpiderHead checks that an IP resolves to an official host name and that the name resolves back to the same IP. Each IP gets a verdict of verified, fake or unchecked. If DNS is blocked on your machine, the result is unavailable, not fake.

  • --max-dns limits the lookups to between 0 and 100 per page.
  • Bots without an official host suffix stay unchecked.
  • Only this option makes network requests, and they are DNS lookups.

Errors and your crawl

For each bot family the report notes when more than 10% of requests return 4xx or 5xx. To compare bot visits with a crawl, import the log into a project with logs-import. logs-join then lists scanned URLs that bots never requested, requested URLs that are absent from the scan, error responses and non-indexable URLs that bots visit.

  • Views: scan_without_bot_visits, bot_urls_absent_scan, status_waste, nonindexable.
  • URLs absent from a scan are candidates to inspect, not proven orphans.
  • logs-summary and logs-bots give daily, status and section views.

Three steps, one saved scan

  1. Point it at an access log

    Give it one Apache, Nginx or IIS W3C log file, plain or gzip-compressed. The format is detected from the first lines.

  2. Group requests by bot

    Hits, bytes, unique IPs, status codes and visited sections for each bot family, from Googlebot and Bingbot to AI crawlers and SEO tools.

  3. Verify bot identity

    With --verify-bots, each bot IP gets a forward-confirmed reverse DNS check: verified, fake or unchecked. A user agent alone is never taken as proof.

One command

bash
spiderhead log-analyze --path ./access.log --verify-bots

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • An Apache, Nginx or IIS access-log file (gzip allowed), or an import folder
  • Optional: a project and a saved scan, to compare logs with a crawl
  • Optional: working outbound DNS, for --verify-bots

Limits

  • Only the supported log formats are read. Custom field layouts are not.
  • Bot names are user-agent claims until verified.
  • A missing or partial log does not prove zero visits.
  • Apache lines without a time zone and IIS timestamps are read as UTC.

Questions

Does it send anything or change my site?
No. The log is read from your disk and the site is never contacted. Only --verify-bots makes network requests, and those are DNS lookups for bot IPs.
How do I know a Googlebot hit is real?
Run with --verify-bots. The reverse DNS name must end in googlebot.com, google.com or googleusercontent.com, and resolve back to the same IP. If DNS is blocked, the tool reports verification as unavailable instead of marking every bot fake.
Which servers and formats are supported?
Apache and Nginx in Common or Combined format, and IIS W3C Extended. IIS columns are read from the #Fields line, so a changed field order still works. Gzip files are read directly.
How is budget waste measured?
log-analyze reports, per bot family, the share of 4xx and 5xx responses. Above 10% it notes that the family is wasting crawl budget. To compare bot hits with the URLs you want crawled, import the log and use logs-join against a saved scan. It does not compare with a sitemap.
What is stored on disk?
log-analyze writes no report, only a temporary index that it removes. logs-import writes a private logs.v1 SQLite file with bot, IP, URL, date and status counts. It keeps no original lines, user agents or referrers, but IPs and paths can still identify people, so keep it out of public reports.
What does it cost?
Nothing. It is free and needs no key or account.

Try it on your own site