CLI application to group Apache access logs into human readbable format.
|
преди 7 години | |
---|---|---|
classes | преди 7 години | |
controller | преди 7 години | |
img | преди 7 години | |
logs | преди 7 години | |
model | преди 7 години | |
view | преди 7 години | |
LICENSE | преди 7 години | |
README.md | преди 7 години | |
logparse | преди 7 години |
Quick and simple PHP-based CLI application that generates human readable Apache access logs, compiled into data groups:
Install PHP-CLI on Debian/Ubuntu:
apt install php7.2-cli
CentOS/RHEL:
yum install php-cli
Clone the repo
git clone https://github.com/angela-d/php-logparse.git && cd php-logparse
After cloning the repo, you can test the script with a sample log, by going into the directory where logparse resides and running:
php logparse list
to out put a list of logs available. Look for your access_log and make note of the numeric key beside it, and run:
php logparse 0
(replace 0 for the key of your access_log)
classes/logparser.php has the application's configuration settings.