tinfoil-hat
Active Member
Hi, I have installed goaccess on my Proxmox Server and it (kinda) works.
I use this to launch for troubleshooting:
My crontab is this:
I want goaccess to display the 1rst day of the Month. I have setup a nginx reverse proxy with around 10 entries, that all write their access log to
the goaccess is reachable public via https://stats.tinfoil-hat.net
To make goaccess read from the current month, I set up the logrotate like that:
- Thanks
I use this to launch for troubleshooting:
Code:
goaccess /var/log/nginx/access.log -o /var/www/report.html --log-format=COMBINED --real-time-html
[PARSING /var/log/nginx/access.log] {242.596} @ {40.432/s}
Code:
@reboot goaccess /var/log/nginx/access.log -o /var/www/report.html --log-format=COMBINED --real-time-html --daemonize > /dev/null 2>&1
I want goaccess to display the 1rst day of the Month. I have setup a nginx reverse proxy with around 10 entries, that all write their access log to
/var/www/report.html
. I have at first tried the goaccess configuration, which somehow worked on my old server (Debian 11 / No Proxmox). It kinda works, but stops after 2 days and doesn't refresh or append.the goaccess is reachable public via https://stats.tinfoil-hat.net
To make goaccess read from the current month, I set up the logrotate like that:
Code:
# see "man logrotate" for details
# global options do not affect preceding include directives
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
#dateext
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may also be configured here.
- Thanks