browscap / http-access-log-parser
Parses Http access logs
Requires
- php: ~7.1.0
- browscap/browscap-php: dev-master
- monolog/monolog: ^1.23
- psr/simple-cache: ^1.0
- roave/doctrine-simplecache: ^1.1
- symfony/console: ^3.3 || ^4.0
- symfony/filesystem: ^3.3 || ^4.0
- symfony/finder: ^3.3 || ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.9
- mikey179/vfsstream: ^1.6
- phpstan/phpstan: ^0.9
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.2
Suggests
- ext-curl: to use curl requests to get the ini file
This package is auto-updated.
Last update: 2020-01-05 22:49:52 UTC
README
This is a log file reader for apache log files to parse useragents.
Installation
Run the command below to install via Composer
composer require browscap/http-access-log-parser
the CLI Log command
The log
command parses a single access log file or a directory with access log files and writes the results into an output file.
vendor/bin/log-parser browscap:log
options
output
(required) the path to a log file where the results are storedcache
(optional) the relative path to your cache directorylog-file
(optional) the relative path to an access log filelog-dir
(optional) the relative path to directory with the log filesinclude
(optional) a glob compatible list of files which should be included, only used in comination with thelog-dir
optionexclude
(optional) a glob compatible list of files which should be excluded from parsing, only used in comination with thelog-dir
option
NOTE: One of both options log-file
and log-dir
is required.
NOTE: At the moment only Apache access logs are supported.
Issues and feature requests
Please report your issues and ask for new features on the GitHub Issue Tracker at https://github.com/browscap/browscap-file-reader/issues
Please report incorrectly identified User Agents and browser detect in the browscap.ini file here: https://github.com/browscap/browscap/issues