You get a clear picture of what crawlers actually do on your site instead of what a crawl tool assumes they do. These five Claude prompts for log file analysis take you from a raw access log to a short fix list: parse the file, separate search engine bots from everything else, find sections that never get requested, and turn the pattern into changes you can ship. Paste a prompt, add your log details, and keep the output you can verify.
What’s on this page
- Five prompts covering parsing, bot filtering, coverage gaps, and reporting.
- Designed for a log export from your host or CDN, not a live crawler.
- Each prompt asks for a check you can run, so results are verifiable.
- Replace the [variables] with your own log format and site details.
The prompts
1. Parse the log into something usable
My access log is in [log format] with fields [field list]. Write a parsing plan that extracts timestamp, requested path, status code, user agent, and referrer, then describe the resulting table columns and what each will let me answer.
What it does: Turns an unreadable file into a table with a purpose.
How to use: Replace [log format] and [field list]. Test the parse on one day of logs before running the whole file.
2. Separate bots from people
Here are the top user agents in my log: [paste user agent list]. Group them into search engine crawlers, other bots, and likely human traffic. Tell me which entries are ambiguous and how to confirm them.
What it does: Stops bot traffic from being read as audience behavior.
How to use: Replace [paste user agent list]. Confirm ambiguous agents by checking whether they requested robots.txt and static assets.
3. Find pages crawlers never reach
I have [number] URLs in my sitemap. Here are the paths that appear in my log for [crawler name] over [date range]: [paste paths]. List the sitemap sections with no requests and rank them by how much they matter to the site.
What it does: Surfaces the content that exists but is invisible to discovery.
How to use: Replace [number], [crawler name], [date range], and [paste paths]. Recheck after internal linking changes; the gap often closes without new URLs.
4. Spot wasted crawl requests
My log shows repeated requests to [path patterns] with status codes [status codes]. Explain why a crawler would keep requesting these, and list the changes that would reduce the requests without hiding real content.
What it does: Finds the paths eating attention that should go to pages you want indexed.
How to use: Replace [path patterns] and [status codes]. Check that nothing you are about to block is linked from a page you care about.
5. Write the fix list
Here is what my log analysis found: [findings]. Turn it into a prioritized fix list with the change, the affected template, the expected effect, and how I will verify it in the next log export.
What it does: Converts an analysis into work someone can actually pick up.
How to use: Replace [findings]. Keep the verification column; without it, the same audit gets repeated next quarter.
How to adapt these prompts
- Export a clean date range that includes a full week, so weekday and weekend patterns are both visible.
- Name the specific crawler you care about; “bots” as one group hides the differences that matter.
- Ask for a query or script alongside the explanation when you plan to repeat the analysis monthly.
FAQ
Do I need a special tool to analyze logs?
No. A spreadsheet handles a small site, and a short script handles a large one. The hard part is deciding which questions to ask, which is what these prompts cover.
How much log history should I look at?
Long enough to include a full crawl cycle for the crawler you care about, and short enough that the file stays manageable. A week is a reasonable starting point for most sites.
What if my host only keeps logs for a few days?
Download and archive them on a schedule, then analyze the archive. Short retention is a reason to automate the export, not a reason to skip the analysis.
Keep going
- Browse the SEO prompt library
- Claude Prompts for Site Structure Audits (Copy & Paste)
- 7 ChatGPT Prompts for Messy Data Cleanup
Want more like this? Browse the full free library at GuPrompt.