web blazonry web development scripts and tutorials Get best price on Unlocked Galaxy S10 Lite
   PHP       Name Generators       Perl       CSS       Javascript       Java       MySql       How Tos       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)

Bookmark and Share




Perl: ProcLog Script to Search Keywords and Phrases

proclog.pl is a handy little script that processes Apache log files and extracts search keywords or phrases. You can use it as is, or to learn from it to apply the concepts to other perl scripts.

The report it creates is not beautiful. For this example, I process what people are typing into search engines to get to my site. 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 have all data in one file, but 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
Test Google Ads Ver. 2
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
Most Popular Pages
Baby Name Generator
U.S. Name Generator
Wu Name Generator
Popup Windows (JavaScript)
Upload and Resize an Image (PHP)
How To Install Apache + PHP + MySQL
Intro to Web Databases (PHP, MySQL)

Least Popular Pages
iNews Applet (Java)
Java Resources
Site Monitor (Perl)
PHP Resources
 
 

  privacy policy     ||     © 1997-2016. astonishinc.com   All Rights Reserved.