Skip to content

Display multiple websites from same dashboard? #2827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gosssamer opened this issue Apr 6, 2025 · 1 comment
Open

Display multiple websites from same dashboard? #2827

gosssamer opened this issue Apr 6, 2025 · 1 comment

Comments

@gosssamer
Copy link

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

@allinurl
Copy link
Owner

allinurl commented Apr 9, 2025

Great question! At the moment, you'd need to either merge the logs into one or run separate GoAccess instances for each site—especially if you're using real-time reporting. Or, you can set up a cron job to generate individual reports per site. #117 should address this (actively working on it) stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants