Import data by import_logs.py are missing Locations & Provider report:S

I imported log data from Apache’s http log file using /misc/log-analytics/import_logs.py.
Then I notice the Locations & Provider page have no report data.

Version : Piwik 1.8.3

For example, this is Awstats’s demo site.
http://awstats.sourceforge.net/

The country report is output from Apache’s log file.
Is Piwik able to do this?

Thanks for any help.

Takeshi

Have you tried installing GeoIP plugin ?

This will make better geolocation when importing logs.

Yes, I know GeoIP plugin.
When I install this plugin, the main screen of Locations & Provider page is fine.
But when I click the small graph beside each country name line, error has occured below.
Is this a GeoIP plugin’s problem?

Requested report GeoIP.getGeoIPCountry for Website id=1 not found in the list of available reports.

#0 /var/www/html/piwik/plugins/API/API.php(1101): Piwik_API_API->getRowEvolutionMetaData(‘1’, ‘range’, ‘2012-09-01,2012…’, ‘GeoIP’, ‘getGeoIPCountry’, false)
#1 /var/www/html/piwik/plugins/API/API.php(1090): Piwik_API_API->getSingleRowEvolution(‘1’, ‘range’, ‘2012-09-01,2012…’, ‘GeoIP’, ‘getGeoIPCountry’, ‘???’, false, false)
#2 [internal function]: Piwik_API_API->getRowEvolution(‘1’, ‘range’, ‘2012-09-01,2012…’, ‘GeoIP’, ‘getGeoIPCountry’, ‘%E6%97%A5%E6%9C…’, false, false, false)
#3 /var/www/html/piwik/core/API/Proxy.php(190): call_user_func_array(Array, Array)
#4 /var/www/html/piwik/core/API/Request.php(128): Piwik_API_Proxy->call(‘Piwik_API_API’, ‘getRowEvolution’, Array)
#5 /var/www/html/piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php(162): Piwik_API_Request->process()
#6 /var/www/html/piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php(99): Piwik_CoreHome_DataTableRowAction_RowEvolution->loadEvolutionReport()
#7 /var/www/html/piwik/plugins/CoreHome/Controller.php(138): Piwik_CoreHome_DataTableRowAction_RowEvolution->__construct(1, NULL)
#8 [internal function]: Piwik_CoreHome_Controller->getRowEvolutionPopover()
#9 /var/www/html/piwik/core/FrontController.php(138): call_user_func_array(Array, Array)
#10 /var/www/html/piwik/index.php(53): Piwik_FrontController->dispatch()
#11 {main}

Yes it’s a GEOIP problem unfortunately :frowning: It does not yet support the new metadata, and no team member are supporting the plugin anymore it seems. I really want to build GeoIP in core: http://dev.piwik.org/trac/ticket/1823
which will be done in 2 months.

Additionally, Provider are not shown.
In the case of javascript tracking, Japanese Provider are all “Ne”.

That is because in the log import script, we specifically disable the Providers report, because it does requests to the DNS, and causes preformance problems and make the script very slow.
However you can enable Providers in the log parsing with the option


--enable-reverse-dns