The Lazy Admin Club The Lazy Admin Club forum is now active for all generic server admin tech talk. It's a place to seek advice, offer tips, swap ideas, or just chat about latest developments. Topics can include Linux commands, shell scripting, hardware, monitoring, web servers, mail servers, DNS, security, reverse proxies, load balancing, databases, caching, performance tuning... the list is endless.
And just to clarify - this forum is not specific to Friendica server admins! And it does not assume any skill level - novices are just as welcome as experts.
GoAccess – Apache log statistics »GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.«
Wait a minute. Through your browser? I know GoAccess as command line tool for analyzing Apache's log files. And I like it. Let's see...
GoAccess can be installed on Debian systems by running apt install goaccess
To start the analyzer just type goaccess -f /var/log/apache2/access.log -a
You will be prompted to select the log format. If you are using the default log file settings on your server, select NCSA combined log format. And remember these settings. You need to enter them in /etc/goaccess.conf file later for the fancy "through your browser" part.
To watch the access data in your browser, just pipe the output of GoAccess to a HTML file served by Apache. Yes, that's all. :) At this point you have to make the changes to the /etc/goaccess.conf file. Just uncomment the lines for log file, date and time format.
Then start GoAccess and redirect the output to a file goaccess -f /var/log/apache2/access.log -a > /var/www/html/report.html
Note: The paths may be different on your system.
Now start your browser and navigate to report.html...
Nice, isn't it? You can even put the command in your crontab to keep the presented data up to date.