Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riimu/accesslogstats
Library for generating stats from access logs
https://github.com/riimu/accesslogstats
Last synced: about 2 months ago
JSON representation
Library for generating stats from access logs
- Host: GitHub
- URL: https://github.com/riimu/accesslogstats
- Owner: Riimu
- License: mit
- Created: 2013-10-22T18:51:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-28T14:00:24.000Z (almost 11 years ago)
- Last Synced: 2024-11-10T23:58:55.699Z (2 months ago)
- Language: PHP
- Size: 172 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.## 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.For example:
```php
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.## Credits ##
This library is copyright 2013 to Riikka Kalliomäki