Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
docs(readme): Added todo for 403 forbidden in goaccess
fix(goaccess): Fixed including .gz for domain only searchs with goaccess
  • Loading branch information
jordantrizz committed Feb 26, 2024
1 parent cd7eff1 commit 0971b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
4 changes: 2 additions & 2 deletions bin/wpst-goaccess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0971b23

Please sign in to comment.