Skip to content

Commit

Permalink
#45 try to filter all bot activity
Browse files Browse the repository at this point in the history
  • Loading branch information
joergrs committed Mar 13, 2024
1 parent d00a8eb commit 7e52e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/goaccess_stats/templates/run_goaccess.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi

# Additional expressions for lines that should be ignored in the log file
FILTER_EXPRESSIONS='wp-cron\.php|wp-login\.php|ical\/all|ical\/ev|xmlrpc\.php|wp-json|wp-content|wp-includes|wp-admin|wp-sitemap'
FILTER_EXPRESSIONS=$FILTER_EXPRESSIONS'|Uptime-Kuma|SemrushBot|\?author='
FILTER_EXPRESSIONS=$FILTER_EXPRESSIONS'|Uptime-Kuma|Bot|\?author='

# Create HTML for given month
zcat --force $LOG_CACHE_DIR/*.log | grep -v -E -e $FILTER_EXPRESSIONS | goaccess --output=$HTML_OUT_DIR/$MONTH.html --log-format=VCOMBINED --ignore-crawlers --no-progress -

0 comments on commit 7e52e31

Please sign in to comment.