2017 © Pedro PelĂĄez
 

library accesslogstats

Access log parsing and statistics generation.

image

riimu/accesslogstats

Access log parsing and statistics generation.

  • Tuesday, January 28, 2014
  • by Riimu
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Access Log Stats library

This library is intended for generating useful statistics from access logs commonly generated by server software such as apache. Currently this library has been written mostly for my own needs and purposes to provide me with the details I want to know. Thus, the code will not be well documented and it may not be fit for all general purposes., (*1)

Usage

The basic idea is to have the parser and supply it with reports that consist of filters and views. Filters are used to remove rows not relevant to that report and views determine what kind of information should be extracted from the row., (*2)

For example:, (*3)

<?php
$parser = new Riimu\LogParser\LogParser(
    new Riimu\LogParser\Source\AccessLogSource('access.log'),
    'output');
$report = new Riimu\LogParser\Report('Referrers for www subdomain');
$report->addFilter(new Riimu\LogParser\Filter\FilterDomain('www.example.com'));
$report->addView((new Riimu\LogParser\View\ReferrerView())
    ->addInternalDomain('www.example.com'));

$parser->addReport($report);
$parser->process();
$parser->saveJSON();

The above code will generate the information about referrers for the subdomain 'www' of your 'example.com' site., (*4)

Credits

This library is copyright 2013 to Riikka KalliomÀki, (*5)

The Versions

28/01 2014

dev-master

9999999-dev

Access log parsing and statistics generation.

  Sources   Download

MIT

The Requires

 

statistics log access

11/12 2013

v0.1.0

0.1.0.0

Access log parsing and statistics generation.

  Sources   Download

MIT

The Requires

 

statistics log access