CLI application to group Apache access logs into human readbable format.
|
%!s(int64=7) %!d(string=hai) anos | |
---|---|---|
classes | %!s(int64=7) %!d(string=hai) anos | |
controller | %!s(int64=7) %!d(string=hai) anos | |
img | %!s(int64=7) %!d(string=hai) anos | |
logs | %!s(int64=7) %!d(string=hai) anos | |
model | %!s(int64=7) %!d(string=hai) anos | |
view | %!s(int64=7) %!d(string=hai) anos | |
LICENSE | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
logparse | %!s(int64=7) %!d(string=hai) anos |
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.