diff --git a/root/dashboard/goaccess.conf b/root/dashboard/goaccess.conf index 268a554..5861081 100644 --- a/root/dashboard/goaccess.conf +++ b/root/dashboard/goaccess.conf @@ -332,7 +332,7 @@ with-mouse false # Specify the path to the input log file. If set, it will take # priority over -f from the command line. # -log-file /config/log/nginx/access.log +#log-file /config/log/nginx/access.log # Send all debug messages to the specified file. # diff --git a/root/dashboard/www/index.php b/root/dashboard/www/index.php index 4be246f..d596cb4 100644 --- a/root/dashboard/www/index.php +++ b/root/dashboard/www/index.php @@ -252,7 +252,8 @@ $geodb = ''; endif; - $goaccess = shell_exec("/usr/local/bin/goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb); + $access_log = file_exists("/dashboard/logs") ? "/dashboard/logs/*.log" : "/config/log/nginx/access.log"; + $goaccess = shell_exec("cat $access_log | /usr/local/bin/goaccess -a -o html --config-file=/dashboard/goaccess.conf $geodb -"); $goaccess = str_replace("