Apache: записываем User Agent

Добавляем в любой конфиг следующую конструкцию:

CustomLog /var/log/apache2/user_agents.log "%{user-agent}i"