Last active
August 11, 2016 08:58
-
-
Save vdubyna/9671853 to your computer and use it in GitHub Desktop.
Count bots by user agent
This file contains hidden or 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
| select count(*) as c, vi.http_user_agent from log_url_info as ui JOIN log_url as lu on lu.url_id=ui.url_id JOIN log_visitor_info as vi on lu.visitor_id=vi.visitor_id where date(lu.visit_time) = '2014-03-19' and vi.http_user_agent like('%bot%') GROUP BY vi.http_user_agent ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment