Webserver reporting: Difference between revisions
Add ToDo section |
Intro about logs |
||
| Line 13: | Line 13: | ||
'''Generating reports''' | '''Generating reports''' | ||
nb. Either run as root, or use sudo to be able to read the log file.<syntaxhighlight lang="bash"> | ''nb. Either run as root, or use sudo to be able to read the log file.'' Reports are not generated by default. The system administrator can run real-time reports on-demand (visible in the console) and can also setup HTML reporting. | ||
# use default config file (will NOT work with default QualityBox) | |||
Meza uses a custom log format (nicknamed 'combined') that is NOT the standard 'combined' format. We supply a customized configuration file (<code>/etc/goaccess/my.goaccess.conf</code>) so that you can report on your logs without any changes to your Web Server logging. | |||
<syntaxhighlight lang="bash"> | |||
# use default config file (will NOT work with default QualityBox due to the log format) | |||
tail -1000 /var/log/apache2/access_log | goaccess -p /etc/goaccess/goaccess.conf - | tail -1000 /var/log/apache2/access_log | goaccess -p /etc/goaccess/goaccess.conf - | ||