CLI application to group Apache access logs into human readbable format.
angela 19dd8177b1 Config option added | 5 years ago | |
---|---|---|
classes | 5 years ago | |
controller | 5 years ago | |
img | 6 years ago | |
logs | 6 years ago | |
model | 5 years ago | |
view | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago | |
logparse | 5 years ago |
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.