web blazonry web development scripts and tutorials
 
Web blazonry.com
   Home       PHP       Name Generators       Perl       CSS       Javascript       Java       devTips       Resources   

Perl Home

Perl Scripts
  Count Links
  Mail to MySQL
  ProcLog Files
  Search and Replace
  Site Monitor
  UnTabify

Perl Articles
  csv2htm Converter
  OLE Automation
  Regular Expressions
  SubDir Recursion

Perl Resources
  Regular Expressions Quick Reference
  Regular Expressions Examples
  Recommended Sites
  Bestselling Perl Books
  Free Perl Books (new)
  Free Python Books(new)





Perl : ProcLog Search Keywords/Phrases

proclog.pl    October 24th, 2000

proclog.pl processes Apache log files and extracts search keywords or phrases. This gives me what people are typing into search engines to get to my site.

This is not a finished script, the report it creates is not beautiful, the data is fairly raw but it gives me a rough idea of what terms are being used.

The report is spit out to the standard output (screen) so be sure to send it to a file if you want the report in a file.

Usage:

proclog.pl [logfile] >report.html

You may have to edit the script and the way it parses the log file to retrieve the referer URL, which is the only bit of the log file needed. My logs has all data in one file, it is also common to have the referers in a seperate log file.

Download Script: proclog_pl.txt


Related Links:
Analog - The most popular logfile analyser in the world
Web Server Log File Analysis - The Basics
Builder.com's Analyze Your Web Traffic

 

Newest Pages
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free JavaScript Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Source Code for Test Google Ads (PHP)
Most Popular Pages
U.S. Name Generator
Wu Name Generator
Baby Name Generator
Upload and Resize an Image (PHP)
Popup Windows (JavaScript)
How To Install Apache + PHP + MySQL
Simple Web Calendar (PHP)

Least Popular Pages
Image Load-Order (Javascript)
dHTML: Scrolling Layers
iNews Aplet (Java)
ProcLog Search Your Logs (Perl)
 
 

  © 1997-2007. astonishinc.com   All Rights Reserved.