goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

Does the HTML dashboard support multiple sites?

Open intern3ts opened this issue 3 years ago • 3 comments

I have multiple sites on a server and I want goaccess to display all the data from the logs in a single HTML webpage, is this possible with goaccess? I know it can generate a dashboard but couldn't find any info on doing it with more than a site, and I need the graphs and stuff to be separated so each site has their own data.

intern3ts avatar Aug 08 '21 23:08 intern3ts

Hi @intern3ts

Well... I'm a little bit confused here. What are you really wanting?

I propose the following approach:

  • separate graphics for each site -- so you'll need an html page for each one;
  • global statistics with all sites -- so you will need to process all LOGs together;

For this second case, the trick is to add the domain to the URL. I.E. changing: ... "GET /url" ... by ... "GET SITE_NAME/url" ...

So... I hope I helped you.

0bi-w6n-K3nobi avatar Aug 09 '21 18:08 0bi-w6n-K3nobi

Like @0bi-w6n-K3nobi mentioned, depending on how you want your output, you will need to either parse one log per site or if you have them combined, they all will be in the same report. If you are using vhosts or server blocks, #117 will let you filter that real-time from the TUI or the HTML report. Working on that as we speak though.

allinurl avatar Aug 26 '21 01:08 allinurl

Hi! I was just going to ask the same thing. GoAccess obviously supports multiple vhosts and sometimes I'd like to filter the whole HTML page based on a specific vhost.

My idea is to add a button to filer selected vhosts. This button can be placed on the same line as "Dashboard" and "Last updated by.." or inside the black menu on the left hand side.

Forza-tng avatar Sep 03 '21 11:09 Forza-tng