Open
Description
I have goaccess set up with apache and a websocket to report on one website. How do I have it report on multiple websites with the same websocket?
I've seen many suggestions over the years that involve using goaccess on demand using cron or just combining the access logs, but ideally I'd like to be able to access the reports for multiple websites through the same goaccess dashboard. Generating separate report pages for each domain would also be fine.
Here is how I am running goaccess. I've created a systemd file and now running it as a service.
/usr/bin/goaccess -f logs/access_log -a -o html/report.html --log-format=COMBINED --config-file=/etc/goaccess/goacces .conf
Here is my goaccess.conf:
time-format %T %z
date-format %d/%b/%y
log-format COMBINED
color-scheme 3
config-dialog false
hl-header true
html-prefs {"theme":"bright","perPage":5,"layout":"horizontal","showTables":true,"visitors":{"plot":{"chartType":"bar"}}}
html-report-title GoAccess Stats
json-pretty-print true
no-color false
no-column-names false
no-csv-summary false
no-progress false
no-tab-scroll false
with-mouse false
addr 209.216.85.156
origin https://darwin.mydomain.com
port 7890
pid-file /var/run/goaccess.pid
real-time-html true
ws-url wss://darwin.mydomain.com:443/wss/
agent-list true
with-output-resolver true
http-method yes
http-protocol yes
no-query-string false
no-term-resolver false
444-as-404 false
4xx-to-unique-count false
all-static-files false
double-decode false
ignore-crawlers false
crawlers-only false
real-os true
ssl-key /etc/letsencrypt/privkey.pem
ssl-cert /etc/letsencrypt/fullchain.pem