Importing apache logs into piwik

I am in the process of switching site analytics from GA to Piwik and would like to include all the historical data I can. I have already concatenated the complete trail of the Apache log files that I have. However, what I am doing next is not entirely clear to me, and Pivik's documentation does not help. He says something like lines

python /path/to/piwik/misc/log-analytics/import_logs.py --url=http://analytics.example.com access.log

      

I have an associated log file, all.logs, in the log-analytics folder. I would think that I just need to release

python /path/to/piwik/misc/log-analytics/import_logs.py all.logs

      

but this throws up an error message. When I provide the URL of the site in question, I get an error that it is returning an HTML document (naturally) that it doesn't like.

I would be very grateful to anyone who could put me on the right track here.

+3


source to share


1 answer


I think that --url=http://analytics.example.com

allows you to set the Piwik url, not your website.



+4


source







All Articles