Skip to content

Instantly share code, notes, and snippets.

@kasparsd
Created June 28, 2013 08:14
Show Gist options
  • Save kasparsd/5883241 to your computer and use it in GitHub Desktop.
Save kasparsd/5883241 to your computer and use it in GitHub Desktop.
Create a GoAccess report of bots crawling your sites
#!/bin/sh
# Note: You need to run this as a user who has access to those log files
cat /var/log/nginx/access.log* | grep bot | goaccess -a
# Examples
#
# 1) Send output to logs.html
# cat /var/log/nginx/access.log* | grep bot | goaccess -a > /var/www/logs.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment