Activity: Apr, 2024 - Nov, 2024
■■■■■■■■Less ■■■■■ More
goaccess_dashboard
Please send patches or remarks to jayvii+goaccess_dashboard[AT]posteo[DOT]de
A tiny tool based on goaccess which creates a summary of aggregated privacy preserving website traffic analytics.
This tool tracks traffic, not people. It is unnecessary to insert tracking code in websites. No micro-level information need to be stored whatsoever. This tool works with purely technically necessary and minimal information that users send to the webserver.
The goal is to create an easy to use dashboard and web-frontend for different weblog analytics created with goaccess.
This tool creates analytics for all time, by year, by month, by week (and optionally daily).
Setup
- Go and get goaccess
- Adjust the log-output of your webserver according to the goaccess
manuals. By default, the script assumes the logs to be stored under
/var/log/apache/www.example.com_access.log
- Insert the index.html in a designated webroot. This is where your traffic-dahsboard lives (e.g. traffic.www.example.com)
- Setup a cron-job to run create_logs-report.sh periodically
Apache2 Configuration
Snippet for the log-definition in your apache configuration:
${APACHE_LOG_DIR}/www.example.com_error.log
ErrorLog "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" custom
LogFormat ${APACHE_LOG_DIR}/www.example.com_access.log custom CustomLog
Cronjob:
# |----------- minutes
# |
# | |--------- hours
# | |
# | | |------- day of month
# | | |
# | | | |----- month
# | | | |
# | | | | |--- day of week
# | | | | |
# | | | | | |- command
# | | | | | |
0 * * * * ~/goaccess/create_logs_report.sh "www.example.com"
Clone this repository via:
git clone https://https://src.jayvii.de/pub/goaccess_dashboard.git