Log some informations from GoogleBot & BingBot for SeoLogAnalyzer.
Edit virtualhost (/etc/apache2/sites-available/)
Add after DocumentRoot :
LogFormat "%h:::%>s:::%b:::%D:::%{Referer}i:::%{User-agent}i:::%V%r" slacombined
SetEnvIf User-Agent "Googlebot/2.1" sla
SetEnvIf User-Agent "bingbot/2.0" sla
SetEnvIf Referer "google.*q=" sla
SetEnvIf Referer "bing.*q=" sla
CustomLog "|/var/www/example.com/sla/logger/index.php" slacombined env=sla
Then CHMOD 777 on /var/www/example.com/sla/logger/index.php
- %h = Ip
- %>s = Server code response
- %b = Size
- %D = Loading time (µs)
- %{Referer}i = Referer
- %{User-agent}i = User agent
- %V%r = Complete uri