Created
June 28, 2013 08:14
-
-
Save kasparsd/5883241 to your computer and use it in GitHub Desktop.
Create a GoAccess report of bots crawling your sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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