From 0971b23ff6c2690028bfdb7f571fdb00d8d4aa61 Mon Sep 17 00:00:00 2001 From: Jordan Trask Date: Mon, 26 Feb 2024 10:45:00 -0500 Subject: [PATCH] Release 1.2.1 docs(readme): Added todo for 403 forbidden in goaccess fix(goaccess): Fixed including .gz for domain only searchs with goaccess --- README.md | 3 ++- bin/wpst-goaccess.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3eaea33..7ba935b 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,8 @@ Add a .debug file to any directory to get debug information. # ToDo * Go through unfinished directory code. * Better documentation -* Place some scripts into functions or separate files not inside root for a cleaner directory structure and code management. +* Place some scripts into functions or separate files not inside root for a cleaner directory structure and code management. +* goaccess: Add filtering for 403 forbidden as they're blocked and not resource intensive # Donate [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://managingwp.io/sponsor/) diff --git a/bin/wpst-goaccess.sh b/bin/wpst-goaccess.sh index f6d9503..c62c405 100755 --- a/bin/wpst-goaccess.sh +++ b/bin/wpst-goaccess.sh @@ -175,13 +175,13 @@ function detect_logs () { echo "Detected GridPane OLS logs" FORMAT="GPOLS" [[ $ACTION == "ALL" ]] && { LOG_FILE_LOCATION="/var/www/*/logs"; LOG_FILTER="*.access.log*gz"; } - [[ $ACTION == "DOMAIN" ]] && { LOG_FILE_LOCATION="/var/www/$DOMAIN/logs"; LOG_FILTER="*.access.log*gz"; } + [[ $ACTION == "DOMAIN" ]] && { LOG_FILE_LOCATION="/var/www/$DOMAIN/logs"; LOG_FILTER="*.access.log*"; } [[ $ACTION == "FILE" ]] && { LOG_FILE_LOCATION="$FILE"; } elif [[ -d /var/log/nginx ]] && [[ -f /root/grid.id ]]; then echo "Detected GridPane NGINX logs" FORMAT="GPNGINX" [[ $ACTION == "ALL" ]] && { LOG_FILE_LOCATION="/var/log/nginx"; LOG_FILTER="*.access.log*gz"; } - [[ $ACTION == "DOMAIN" ]] && { LOG_FILE_LOCATION="/var/log/nginx"; LOG_FILTER="*.access.log*gz"; } + [[ $ACTION == "DOMAIN" ]] && { LOG_FILE_LOCATION="/var/log/nginx"; LOG_FILTER="*.access.log*"; } [[ $ACTION == "FILE" ]] && { LOG_FILE_LOCATION="$FILE"; } elif [[ -d /etc/nginx ]] && [[ -d /var/log/nginx ]]; then echo "Detected NGINX logs"