No Browser Infos after import of Apache Logfiles


I will parse apache access log files with the script. This scripts works, but I don’t see any browser info in piwik. There are only entries named as “Unknown”.

The log files has entries like this:

IP-Adress - - [16/May/2014:08:46:11 +0200] "GET /img/share/icon_ios_chat.png HTTP/1.1" 304 - 3751 "http:/<domain>/index.html?shipmentId=00340434123733293676" "208FCD4B78A932108105C309B4E2974F" "Mozilla/5.0 (Linux; Android 4.1.1; PadFone 2 Build/JRO03L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Safari/537.36"

I start the script with in this way:

/var/www/html/piwik/misc/log-analytics/ --url=http://localhost/piwik /root/access_log --idsite=1 --enable-http-redirects --enable-static

What should i do?

greetings niesel

Is the plugin “DevicesDetection” enabled in Piwik > Settings > Plugins?


I have activate this plugin and I run the import again. But there are no browser infos in piwik.

greetings niesel

Hi I use Nginx, I have DevicesDetection plugin enabled and Piwik Visitor Tracking disabled.
I set a cronjob that import logs via script and then execute core:archive.
I’m able to get all the info I need, except devides and browser data.

Bluespark Labs LLC

do you log the User Agent in your log file? maybe it is not correctly imported into Piwik…

Hi Matt,

yes I log the User-Agent and I solved by setting logformat option to ncsa_extended. Now when I go to Visitors -> Settings tab, I see OS and Browsers but if I go to Visitors -> Devices, it is still empty.

Ps: Currently I’m using Piwik 2.8.3


Bluespark Labs LLC

Feel free to create an issue in: GitHub - matomo-org/matomo: Liberating Web Analytics. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests!
with the log file used to reproduce and the command ?